logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface ISequencePlayerServiceFactory

    Base factory contract for creating sequence player services.

    Vertical aggregates (e.g., CutscenePlayer) extend this interface to provide domain-specific factory methods while preserving the generic creation surface.

    Namespace: Serenity.SequencePlayer.Application.Interfaces
    Assembly: Serenity.SequencePlayer.Application.dll
    Syntax
    public interface ISequencePlayerServiceFactory

    Methods

    CreateService(string, ISequenceDefinition, ILogService)

    Creates a sequence player service configured with a single definition.

    Declaration
    ISequencePlayerService CreateService(string serviceName, ISequenceDefinition definition, ILogService logService)
    Parameters
    Type Name Description
    string serviceName

    The name of the service instance.

    ISequenceDefinition definition

    The sequence definition for playback.

    ILogService logService

    The logging service dependency.

    Returns
    Type Description
    ISequencePlayerService

    A new instance of ISequencePlayerService.

    CreateService(string, ISequenceDefinition[], ILogService)

    Creates a sequence player service configured with the given definitions.

    Declaration
    ISequencePlayerService CreateService(string serviceName, ISequenceDefinition[] definitions, ILogService logService)
    Parameters
    Type Name Description
    string serviceName

    The name of the service instance.

    ISequenceDefinition[] definitions

    The sequence definitions available for playback.

    ILogService logService

    The logging service dependency.

    Returns
    Type Description
    ISequencePlayerService

    A new instance of ISequencePlayerService.

    In this article
    © 2026 Serenity. All Rights Reserved