- add midi installer

master
Simon G 5 years ago
parent 7ff1aa2808
commit d071846781
  1. 3
      Mystify/Bootstrapper.cs
  2. 25
      Mystify/Installers/MidiInstaller.cs
  3. 1
      Mystify/Mystify.csproj

@ -13,6 +13,7 @@ namespace Mystify
public IIocContainer BootstrapKernel() => public IIocContainer BootstrapKernel() =>
new IocContainer().Install( new IocContainer().Install(
new NotifyIconInstaller(), new NotifyIconInstaller(),
new AudioInstaller()); new AudioInstaller(),
new MidiInstaller());
} }
} }

@ -0,0 +1,25 @@
// Author: Gockner, Simon
// Created: 2021-04-09
// Copyright(c) 2021 SimonG. All Rights Reserved.
using Lib.Midi;
using Lib.Midi.Factories;
using Lib.Midi.Interfaces;
using LightweightIocContainer.Interfaces;
using LightweightIocContainer.Interfaces.Installers;
namespace Mystify.Installers
{
public class MidiInstaller : IIocInstaller
{
public void Install(IIocContainer container)
{
container.Register<IMidiCommunication, MidiCommunication>();
container.Register<IMidiMessage, MidiMessage>();
//factories
container.RegisterFactory<IMidiCommunicationFactory>();
container.RegisterFactory<IMidiMessageFactory>();
}
}
}

@ -16,6 +16,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Lib.Audio\Lib.Audio.csproj" /> <ProjectReference Include="..\Lib.Audio\Lib.Audio.csproj" />
<ProjectReference Include="..\Lib.Midi\Lib.Midi.csproj" />
<ProjectReference Include="..\Lib.NotifyIcon\Lib.NotifyIcon.csproj" /> <ProjectReference Include="..\Lib.NotifyIcon\Lib.NotifyIcon.csproj" />
</ItemGroup> </ItemGroup>
</Project> </Project>

Loading…
Cancel
Save