A database based on .net
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.

42 lines
1.4 KiB

// Author: Gockner, Simon
// Created: 2020-02-12
// Copyright(c) 2020 SimonG. All Rights Reserved.
using GBase.Api.Services;
using GBase.Client.Factories;
using GBase.Client.Interfaces;
using GBase.Client.Services;
using GBase.Client.Services.Factories;
using LightweightIocContainer.Interfaces;
using LightweightIocContainer.Interfaces.Installers;
namespace GBase.Client.Installers
{
/// <summary>
/// <see cref="IIocInstaller"/> for the <see cref="GBaseClient"/>
/// </summary>
public class GBaseClientInstaller : IIocInstaller
{
/// <inheritdoc />
public void Install(IIocContainer container)
{
container.Register<IGBaseClient, GBaseClient>();
container.Register<IGBaseClientSettings, GBaseClientSettings>();
//services
container.Register<IGBaseService, GBaseService>();
container.Register<IGBaseTableService, GBaseTableService>();
container.Register<IGBaseEntryService, GBaseEntryService>();
//factories
container.RegisterFactory<IGBaseClientFactory>();
container.RegisterFactory<IGBaseClientSettingsFactory>();
//service factories
container.RegisterFactory<IGBaseServiceFactory>();
container.RegisterFactory<IGBaseTableServiceFactory>();
container.RegisterFactory<IGBaseEntryServiceFactory>();
}
}
}