|
|
|
|
@ -0,0 +1,40 @@ |
|
|
|
|
// Author: Gockner, Simon |
|
|
|
|
// Created: 2021-04-08 |
|
|
|
|
// Copyright(c) 2021 SimonG. All Rights Reserved. |
|
|
|
|
|
|
|
|
|
using Lib.Audio; |
|
|
|
|
using Lib.Audio.Controls; |
|
|
|
|
using Lib.Audio.Controls.Factories; |
|
|
|
|
using Lib.Audio.Controls.Interfaces; |
|
|
|
|
using Lib.Audio.Factories; |
|
|
|
|
using Lib.Audio.Interfaces; |
|
|
|
|
using LightweightIocContainer.Interfaces; |
|
|
|
|
using LightweightIocContainer.Interfaces.Installers; |
|
|
|
|
|
|
|
|
|
namespace Mystify.Installers |
|
|
|
|
{ |
|
|
|
|
public class AudioInstaller : IIocInstaller |
|
|
|
|
{ |
|
|
|
|
public void Install(IIocContainer container) |
|
|
|
|
{ |
|
|
|
|
container.Register<IDevice, Device>(); |
|
|
|
|
container.Register<IChannel, Channel>(); |
|
|
|
|
container.Register<IControllable, Controllable>(); |
|
|
|
|
|
|
|
|
|
//controls |
|
|
|
|
container.Register<IFader, Fader>(); |
|
|
|
|
container.Register<IKnob, Knob>(); |
|
|
|
|
container.Register<IButton, Button>(); |
|
|
|
|
|
|
|
|
|
//factories |
|
|
|
|
container.RegisterFactory<IDeviceFactory>(); |
|
|
|
|
container.RegisterFactory<IChannelFactory>(); |
|
|
|
|
container.RegisterFactory<IControllableFactory>(); |
|
|
|
|
|
|
|
|
|
//control factories |
|
|
|
|
container.RegisterFactory<IFaderFactory>(); |
|
|
|
|
container.RegisterFactory<IKnobFactory>(); |
|
|
|
|
container.RegisterFactory<IButtonFactory>(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |