37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
|
using AircraftPlantContracts.DependencyInjections;
|
|||
|
using AircraftPlantContracts.StoragesContracts;
|
|||
|
using AircraftPlantListImplement.Implements;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace AircraftPlantListImplement
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Реализация интерфейса для регистрации зависимостей
|
|||
|
/// </summary>
|
|||
|
public class ListImplementationExtension : IImplementationExtension
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Приоритет
|
|||
|
/// </summary>
|
|||
|
public int Priority => 0;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Регистрация сервисов
|
|||
|
/// </summary>
|
|||
|
public void RegisterServices()
|
|||
|
{
|
|||
|
DependencyManager.Instance.RegisterType<IClientStorage, ClientStorage>();
|
|||
|
DependencyManager.Instance.RegisterType<IImplementerStorage, ImplementerStorage>();
|
|||
|
DependencyManager.Instance.RegisterType<IComponentStorage, ComponentStorage>();
|
|||
|
DependencyManager.Instance.RegisterType<IPlaneStorage, PlaneStorage>();
|
|||
|
DependencyManager.Instance.RegisterType<IOrderStorage, OrderStorage>();
|
|||
|
DependencyManager.Instance.RegisterType<IMessageInfoStorage, MessageInfoStorage>();
|
|||
|
DependencyManager.Instance.RegisterType<IBackUpInfo, BackUpInfo>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|