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.
Implements
Inherited Members
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 virtual 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. |