PIbd-21_MasenkinMS_Aircraft.../AircraftPlant/AircraftPlantListImplement/ListImplementationExtension.cs

37 lines
1.2 KiB
C#
Raw Normal View History

2024-05-13 02:01:32 +04:00
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>();
}
}
}