37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using AircraftPlantContracts.DependencyInjections;
|
|
using AircraftPlantContracts.StoragesContracts;
|
|
using AircraftPlantFileImplement.Implements;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AircraftPlantFileImplement
|
|
{
|
|
/// <summary>
|
|
/// Реализация интерфейса для регистрации зависимостей
|
|
/// </summary>
|
|
public class FileImplementationExtension : IImplementationExtension
|
|
{
|
|
/// <summary>
|
|
/// Приоритет
|
|
/// </summary>
|
|
public int Priority => 1;
|
|
|
|
/// <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>();
|
|
}
|
|
}
|
|
}
|