logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMusicPlayerGatewayFactory

    Factory for creating Unity music player gateway instances.
    Provides a simple factory implementation for instantiating UnityMusicPlayerGateway objects with service collections.
    Implements the IMusicPlayerGatewayFactory interface to support dependency injection and gateway creation patterns.
    Enables clean separation between gateway creation logic and gateway usage throughout the application.

    Inheritance
    object
    UnityMusicPlayerGatewayFactory
    Implements
    IMusicPlayerGatewayFactory
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.MusicPlayer.InterfaceAdapters.Gateways.Factories
    Assembly: Serenity.UnityMusicPlayer.InterfaceAdapters.dll
    Syntax
    public class UnityMusicPlayerGatewayFactory : IMusicPlayerGatewayFactory

    Constructors

    UnityMusicPlayerGatewayFactory()

    Declaration
    public UnityMusicPlayerGatewayFactory()

    Methods

    CreateGateway(Dictionary<string, IMusicPlayerService>)

    Creates a new UnityMusicPlayerGateway instance with the provided music player services.
    Initializes the gateway with a collection of music player services for multi-service support.
    Returns a configured gateway ready for music player operation routing and management.

    Declaration
    public IMusicPlayerGateway CreateGateway(Dictionary<string, IMusicPlayerService> services)
    Parameters
    Type Name Description
    Dictionary<string, IMusicPlayerService> services

    Dictionary mapping service IDs to music player service instances.

    Returns
    Type Description
    IMusicPlayerGateway

    A new IMusicPlayerGateway instance configured with the provided services.

    Implements

    IMusicPlayerGatewayFactory
    In this article
    © 2026 Serenity. All Rights Reserved