2016-11-20 13:34:50 +00:00
|
|
|
|
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);
|
2016-11-20 13:34:50 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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);
|
2016-11-20 13:34:50 +00:00
|
|
|
|
void RegisterController(Type type);
|
|
|
|
|
}
|
|
|
|
|
}
|