Beispiel #1
0
 public EventApplier(IEventStore eventstore, HandlerRegistry handlerregistry, IHandlerInstanceResolver resolver,IParameterResolver parameterresolver)
 {
     this.eventstore = eventstore;
     this.handlerregistry = handlerregistry;
     this.resolver = resolver;
     this.parameterresolver = parameterresolver;
 }
Beispiel #2
0
 public CommandBus(IEventStore eventstore, HandlerRegistry handlerregistry, IHandlerInstanceResolver resolver,IParameterResolver ParameterResolver)
 {
     this.eventstore = eventstore;
     this.handlerregistry = handlerregistry;
     this.resolver = resolver;
     this.ParameterResolver = ParameterResolver;
 }
Beispiel #3
0
 public ScritchyBus(Func<Type, object> LoadHandler = null, IEventstoreAdapter adapter = null, bool DoNotApplyEvents = false)
 {
     if (LoadHandler == null)
         LoadHandler = x => Activator.CreateInstance(x);
     EventStore = new Scritchy.Infrastructure.Implementations.EventStorage.EventStore(adapter: adapter);
     Registry = new ConventionBasedRegistry();
     resolver = new HandlerInstanceResolver(EventStore, Registry, LoadHandler);
     ParameterResolver = new ParameterResolver(resolver);
     Bus = new CommandBus(EventStore, Registry, resolver,ParameterResolver);
     applier = new EventApplier(EventStore, Registry, resolver,ParameterResolver);
     this.DoNotApplyEvents = DoNotApplyEvents;
 }