- add driver installer

master
Simon G 5 years ago
parent c282b7648b
commit 0f5085d588
  1. 5
      Mystify/Bootstrapper.cs
  2. 23
      Mystify/Installers/DriverInstaller.cs
  3. 1
      Mystify/Mystify.csproj

@ -13,8 +13,9 @@ namespace Mystify
public IIocContainer BootstrapKernel() =>
new IocContainer().Install(
new MainInstaller(),
new NotifyIconInstaller(),
new AudioInstaller(),
new MidiInstaller());
new DriverInstaller(),
new MidiInstaller(),
new NotifyIconInstaller());
}
}

@ -0,0 +1,23 @@
// Author: Gockner, Simon
// Created: 2021-04-09
// Copyright(c) 2021 SimonG. All Rights Reserved.
using Lib.Driver;
using Lib.Driver.Factories;
using Lib.Driver.Interfaces;
using LightweightIocContainer.Interfaces;
using LightweightIocContainer.Interfaces.Installers;
namespace Mystify.Installers
{
public class DriverInstaller : IIocInstaller
{
public void Install(IIocContainer container)
{
container.Register<IDriverLoader, DriverLoader>();
//factories
container.RegisterFactory<IDriverLoaderFactory>();
}
}
}

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

Loading…
Cancel
Save