|
|
|
@ -0,0 +1,31 @@ |
|
|
|
|
|
|
|
// Author: Gockner, Simon |
|
|
|
|
|
|
|
// Created: 2020-02-12 |
|
|
|
|
|
|
|
// Copyright(c) 2020 SimonG. All Rights Reserved. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using GBase.Factories; |
|
|
|
|
|
|
|
using GBase.Interfaces; |
|
|
|
|
|
|
|
using LightweightIocContainer.Interfaces; |
|
|
|
|
|
|
|
using LightweightIocContainer.Interfaces.Installers; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace GBase.Installers |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
|
|
|
/// <see cref="IIocInstaller"/> for the GBase |
|
|
|
|
|
|
|
/// </summary> |
|
|
|
|
|
|
|
public class GBaseInstaller : IIocInstaller |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
|
|
|
|
|
public void Install(IIocContainer container) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
container.Register<IGBase, GBase>(); |
|
|
|
|
|
|
|
container.Register<IGBaseTable, GBaseTable>(); |
|
|
|
|
|
|
|
container.Register<IGBaseEntry, GBaseEntry>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//factories |
|
|
|
|
|
|
|
container.RegisterFactory<IGBaseFactory>(); |
|
|
|
|
|
|
|
container.RegisterFactory<IGBaseTableFactory>(); |
|
|
|
|
|
|
|
container.RegisterFactory<IGBaseEntryFactory>(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |