You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
956 B
30 lines
956 B
// 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<IGBaseColumn, GBaseColumn>();
|
|
|
|
//factories
|
|
container.RegisterFactory<IGBaseFactory>();
|
|
container.Register<IGBaseTableFactory, GBaseTableFactory>(); //TODO: Once LightweightIocContainer can handle open generic registrations this can be changed back again
|
|
container.RegisterFactory<IGBaseColumnFactory>();
|
|
}
|
|
}
|
|
} |