PIbd-21_MasenkinMS_Aircraft.../AircraftPlant/AircraftPlantFileImplement/FileImplementationExtension.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 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>();
}
}
}