1
0
mirror of synced 2024-11-16 14:53:50 +00:00
Tapeti/IDependencyResolver.cs

19 lines
470 B
C#
Raw Normal View History

using System;
namespace Tapeti
{
public interface IDependencyResolver
{
T Resolve<T>() where T : class;
2016-12-11 14:08:58 +00:00
object Resolve(Type type);
}
public interface IDependencyInjector : IDependencyResolver
{
2016-12-11 14:08:58 +00:00
void RegisterDefault<TService, TImplementation>() where TService : class where TImplementation : class, TService;
void RegisterPublisher(Func<IPublisher> publisher);
void RegisterController(Type type);
}
}