SushiBarBase/SushiBar/SushiBarContracts/DI/IDependencyContainer.cs

13 lines
324 B
C#
Raw Normal View History

using Microsoft.Extensions.Logging;
namespace SushiBarContracts.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>();
}
}