PIbd22_Kuznetsov_A.V._Sewin.../SewingDresses/SewingDressesDatabaseImplement/DatabaseImplementationExtension.cs

23 lines
923 B
C#
Raw Normal View History

2024-06-22 21:11:56 +04:00
using SewingDressesContracts.DI;
using SewingDressesDatabaseImplement.Implements;
using SewingDressesDatabaseImplement.Models;
using SewingDressesContracts.StoragesContracts;
namespace SewingDressesDatabaseImplement
{
public class DatabaseImplementationExtension : IImplementationExtension
{
public int Priority => 2;
public void RegisterServices()
{
DependencyManager.Instance.RegisterType<IClientStorage, ClientStorage>();
DependencyManager.Instance.RegisterType<IComponentStorage, ComponentStorage>();
DependencyManager.Instance.RegisterType<IImplementStorage, ImplementStorage>();
DependencyManager.Instance.RegisterType<IMessageInfoStorage, MessageInfoStorage>();
DependencyManager.Instance.RegisterType<IOrderStorage, OrderStorage>();
DependencyManager.Instance.RegisterType<IDressStorage, DressStorage>();
DependencyManager.Instance.RegisterType<IBackUpInfo, BackUpInfo>();
}
}
}