PIbd-21_MasenkinMS_Aircraft.../AircraftPlant/AircraftPlantDatabaseImplement/DatabaseImplementationExtension.cs
2024-05-13 02:01:32 +04:00

37 lines
1.3 KiB
C#

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