diff --git a/Mystify/Bootstrapper.cs b/Mystify/Bootstrapper.cs index 87b95b0..895423c 100644 --- a/Mystify/Bootstrapper.cs +++ b/Mystify/Bootstrapper.cs @@ -13,6 +13,7 @@ namespace Mystify public IIocContainer BootstrapKernel() => new IocContainer().Install( new NotifyIconInstaller(), - new AudioInstaller()); + new AudioInstaller(), + new MidiInstaller()); } } \ No newline at end of file diff --git a/Mystify/Installers/MidiInstaller.cs b/Mystify/Installers/MidiInstaller.cs new file mode 100644 index 0000000..9fdd2cd --- /dev/null +++ b/Mystify/Installers/MidiInstaller.cs @@ -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(); + container.Register(); + + //factories + container.RegisterFactory(); + container.RegisterFactory(); + } + } +} \ No newline at end of file diff --git a/Mystify/Mystify.csproj b/Mystify/Mystify.csproj index d2d5ea1..aaf17a2 100644 --- a/Mystify/Mystify.csproj +++ b/Mystify/Mystify.csproj @@ -16,6 +16,7 @@ +