Class UnitySoundMixerInstaller
Unity-specific installer for the Sound Mixer module.
Handles dependency injection setup for Unity AudioMixer services including validation, factory creation, and use case registration.
Implements the foundation installer pattern to integrate Unity audio systems with the Clean Architecture layers.
Namespace: Serenity.SoundMixer.Installation.Installers
Assembly: Serenity.UnitySoundMixer.Installation.dll
Syntax
public class UnitySoundMixerInstaller : SoundMixerInstaller, IFoundationInstaller, IInstaller
Constructors
UnitySoundMixerInstaller()
Declaration
public UnitySoundMixerInstaller()
Methods
Install(SoundMixerInstallerInstallInput)
Installs the sound mixer module with comprehensive setup and validation.
Loads Unity sound mixer settings, validates configuration, creates service factory, initializes service, and registers use cases.
Declaration
public override void Install(SoundMixerInstallerInstallInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| SoundMixerInstallerInstallInput | input | Installation input containing the event dispatcher service |
InstallService(ISoundMixerSettings, IEventDispatcherService)
Creates and initializes the sound mixer service using the factory.
Delegates service creation to the factory with the provided settings and event dispatcher.
Declaration
protected override ISoundMixerService InstallService(ISoundMixerSettings soundMixerSettings, IEventDispatcherService eventDispatcherService)
Parameters
| Type | Name | Description |
|---|---|---|
| ISoundMixerSettings | soundMixerSettings | The sound mixer settings for service configuration |
| IEventDispatcherService | eventDispatcherService | The event dispatcher service for event handling |
Returns
| Type | Description |
|---|---|
| ISoundMixerService | A fully initialized sound mixer service instance |
InstallServiceFactory()
Creates the Unity-specific sound mixer service factory.
Returns a factory instance capable of creating UnitySoundMixerService components.
Declaration
protected override ISoundMixerServiceFactory InstallServiceFactory()
Returns
| Type | Description |
|---|---|
| ISoundMixerServiceFactory | The Unity sound mixer service factory |
InstallUseCases(ISoundMixerService)
Creates and configures the sound mixer use cases.
Initializes the use case layer with the provided sound mixer service for handling audio operations.
Declaration
protected override SoundMixerUseCases InstallUseCases(ISoundMixerService service)
Parameters
| Type | Name | Description |
|---|---|---|
| ISoundMixerService | service | The sound mixer service to use for use case operations |
Returns
| Type | Description |
|---|---|
| SoundMixerUseCases | Configured sound mixer use cases |