logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IAudioPlayerServiceFactory

    Factory interface for creating audio player services.

    Namespace: Serenity.AudioPlayer.Application.Interfaces
    Assembly: Serenity.AudioPlayer.Application.dll
    Syntax
    public interface IAudioPlayerServiceFactory

    Methods

    CreateService(IGameSettingsService, IAudioPlayerSettings, IEventDispatcherService, ILogService)

    Creates an audio player service with the provided dependencies.

    Declaration
    IAudioPlayerService CreateService(IGameSettingsService gameSettingsService, IAudioPlayerSettings settings, IEventDispatcherService eventDispatcherService, ILogService logService)
    Parameters
    Type Name Description
    IGameSettingsService gameSettingsService

    Service for managing game settings.

    IAudioPlayerSettings settings

    Settings for configuring the audio player.

    IEventDispatcherService eventDispatcherService

    Service for dispatching events.

    ILogService logService

    Service for logging information and errors.

    Returns
    Type Description
    IAudioPlayerService

    A new instance of an audio player service.

    In this article
    © 2026 Serenity. All Rights Reserved