PIbd-23-Radaev-A.V.-GiftShop/GiftShop/GiftShopContracts/DI/IDependencyContainer.cs
Arkadiy Radaev 44fa88599e res8
2024-05-17 13:28:57 +04:00

13 lines
324 B
C#

using Microsoft.Extensions.Logging;
namespace GiftShopContracts.DI
{
public interface IDependencyContainer
{
void AddLogging(Action<ILoggingBuilder> configure);
void RegisterType<T, U>(bool isSingle) where U : class, T where T : class;
void RegisterType<T>(bool isSingle) where T : class;
T Resolve<T>();
}
}