PIbd22_Kuznetsov_A.V._Sewin.../SewingDresses/SewingDressesContracts/DI/IDependencyContainer.cs

19 lines
446 B
C#
Raw Normal View History

2024-06-22 21:11:56 +04:00
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SewingDressesContracts.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>();
}
}