- add lib.audio installer

master
Simon G 5 years ago
parent dc453cf3b7
commit a90f9cb71f
  1. 40
      Mystify/Installers/AudioInstaller.cs
  2. 1
      Mystify/Mystify.csproj

@ -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>();
}
}
}

@ -16,6 +16,7 @@
<PackageReference Include="LightweightIocContainer" Version="3.0.0-beta" /> <PackageReference Include="LightweightIocContainer" Version="3.0.0-beta" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Lib.Audio\Lib.Audio.csproj" />
<ProjectReference Include="..\Lib.NotifyIcon\Lib.NotifyIcon.csproj" /> <ProjectReference Include="..\Lib.NotifyIcon\Lib.NotifyIcon.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

Loading…
Cancel
Save