From d0718467818f514c49ebae5d182c70a8a465a548 Mon Sep 17 00:00:00 2001 From: Simon G Date: Fri, 9 Apr 2021 09:11:35 +0200 Subject: [PATCH] - add midi installer --- Mystify/Bootstrapper.cs | 3 ++- Mystify/Installers/MidiInstaller.cs | 25 +++++++++++++++++++++++++ Mystify/Mystify.csproj | 1 + 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 Mystify/Installers/MidiInstaller.cs 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 @@ +