Ejemplo n.º 1
0
 public MemBusAdapter(IocAdapter iocAdapter)
 {
     this.memBus =
         BusSetup.StartWith <AsyncConfiguration>()
         .Apply <IoCSupport>(s => s.SetAdapter(iocAdapter).SetHandlerInterface(typeof(IHandle <>)))
         .Construct();
 }
Ejemplo n.º 2
0
 public IoCBasedResolver(IocAdapter adapter, Type handlerType, Func<Type, Type> messageTypeResolver)
 {
     _adapter = adapter;
     _handlerType = handlerType;
     _messageTypeResolver = messageTypeResolver;
 }
Ejemplo n.º 3
0
 public IoCBasedResolver(IocAdapter adapter)
 {
     this.adapter = adapter;
 }
Ejemplo n.º 4
0
 public IoCBasedResolver(IocAdapter adapter, Type handlerType, Func <Type, Type> messageTypeResolver)
 {
     _adapter             = adapter;
     _handlerType         = handlerType;
     _messageTypeResolver = messageTypeResolver;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Add an IoCadapter that will be used to resolve subscriptions. subscriptions will be resolved based on the interface you provide
 /// </summary>
 public IoCSupport SetAdapter(IocAdapter adapter)
 {
     _adapter = adapter;
     return(this);
 }