logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface ISequencePlayerService

    Service for orchestrating and playing sequences of execution stages. Supports playback by key identifier or definition instance.

    Namespace: Serenity.SequencePlayer.Application.Interfaces
    Assembly: Serenity.SequencePlayer.Application.dll
    Syntax
    public interface ISequencePlayerService : IService, IFoundationSettings

    Methods

    Initialize(ILogService)

    Initializes the service with logging dependency.

    Declaration
    void Initialize(ILogService logService)
    Parameters
    Type Name Description
    ILogService logService

    The logging service to use.

    PlayAsync(ISequenceDefinition, CancellationToken)

    Plays a sequence from definition instance.

    Declaration
    Task PlayAsync(ISequenceDefinition definition, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ISequenceDefinition definition

    The definition of the sequence to play.

    CancellationToken cancellationToken

    Cancellation token to cancel the operation.

    Returns
    Type Description
    Task

    A task representing the asynchronous operation.

    PlayAsync(string, CancellationToken)

    Plays a sequence by unique identifier.

    Declaration
    Task PlayAsync(string sequenceKey, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    string sequenceKey

    The identifier of the sequence to play.

    CancellationToken cancellationToken

    Cancellation token to cancel the operation.

    Returns
    Type Description
    Task

    A task representing the asynchronous operation.

    In this article
    © 2026 Serenity. All Rights Reserved