示例#1
0
 public ConsumeEventCatalogBuilder(Routes routes, MessageContextFactory contextFactory, DepsCatalog deps)
 {
     _catalog        = new Dictionary <string, ICallbackExecutor>();
     _consumeRoutes  = new ConsumeEventRoute(routes);
     _contextFactory = contextFactory;
     _deps           = deps;
 }
示例#2
0
 public ConsumeCommandCatalogBuilder(Routes routes, MessageContextFactory contextFactory, DepsCatalog deps)
 {
     _catalog        = new Dictionary <string, ICallbackExecutor>();
     _routes         = routes;
     _contextFactory = contextFactory;
     _deps           = deps;
 }
示例#3
0
 public PublisherFactoryBuilder(Routes routes, DepsCatalog depsCatalog, string sourceService, string sourceHost)
 {
     _eventCatalog   = new PublishEventCatalogBuilder(routes, depsCatalog);
     _commandCatalog = new PublishCommandCatalogBuilder(routes, depsCatalog);
     _deps           = depsCatalog;
     _sourceService  = sourceService;
     _sourceHost     = sourceHost;
 }
示例#4
0
 public PublisherFactory(PublishCommandCatalog commandCatalog, PublishEventCatalog eventCatalog, DepsCatalog deps, string sourceService, string sourceHost)
 {
     _commandCatalog = commandCatalog;
     _eventCatalog   = eventCatalog;
     _deps           = deps;
     _sourceService  = sourceService;
     _sourceHost     = sourceHost;
 }
示例#5
0
 public ConsumeCatalogBuilder(Routes routes, MessageContextFactory contextFactory, IConsumerImplFactory consumerFactory, DepsCatalog deps)
 {
     _consumerFactory = consumerFactory;
     _contextFactory  = contextFactory;
     _deps            = deps;
     _commandCatalog  = new ConsumeCommandCatalogBuilder(routes, contextFactory, _deps);
     _eventCatalog    = new ConsumeEventCatalogBuilder(routes, contextFactory, _deps);
 }
示例#6
0
 internal Publisher(IExchangePublisher publisher, PublishCommandCatalog commandCatalog,
                    PublishEventCatalog eventCatalog, DepsCatalog deps, string sourceService, string sourceHost)
 {
     _publisher      = publisher;
     _eventCatalog   = eventCatalog;
     _commandCatalog = commandCatalog;
     _deps           = deps;
     _sourceHost     = sourceHost;
     _sourceService  = sourceService;
 }
示例#7
0
 public ConsumeExecutorCatalog(ImmutableDictionary <string, ICallbackExecutor> consumers, MessageContextFactory contextFactory, DepsCatalog depsCatalog)
 {
     _consumers      = consumers;
     _contextFactory = contextFactory;
     _deps           = depsCatalog;
 }
示例#8
0
 public PublishEventCatalogBuilder(Routes routes, DepsCatalog deps)
 {
     _routes  = routes;
     _catalog = new Dictionary <Type, Func <object, string> >();
     _deps    = deps;
 }
 public PublishCommandCatalogBuilder(Routes routes, DepsCatalog deps)
 {
     _catalog = new Dictionary <Type, Dictionary <Type, string> >();
     _routes  = routes;
     _deps    = deps;
 }
示例#10
0
 internal CallbackExecutorCommand(CommandConsumerFactory <T> consumerFactory, MessageContextFactory contextFactory, DepsCatalog deps)
 {
     _consumerFactory = consumerFactory;
     _deps            = deps;
     _contextFactory  = contextFactory;
 }
示例#11
0
 internal CallbackExecutorEvent(EventConsumerFactory <TServiceDefinition, T> consumerFactory, MessageContextFactory contextFactory, DepsCatalog deps)
 {
     _consumerFactory = consumerFactory;
     _deps            = deps;
     _contextFactory  = contextFactory;
 }