PIbd-23-Radaev-A.V.-GiftShop/GiftShop/GiftShopContracts/DI/IDependencyContainer.cs

13 lines
324 B
C#
Raw Normal View History

2024-05-17 13:28:57 +04:00
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>();
}
}