예제 #1
0
        public static IMessageSubscriberManager SubscribeDomainCommands(this IMessageSubscriberManager subscriber)
        {
            subscriber.Subscribe <DomainCommandTransportMessage, IMessageHandler <DomainCommandTransportMessage> >();
            subscriber.SubscribeAsync <DomainCommandTransportMessage, IAsyncMessageHandler <DomainCommandTransportMessage> >();

            return(subscriber);
        }
예제 #2
0
 public InMemoryMessageBus(
     IMessageSubscriberManager subscriberManager,
     ILogger <InMemoryMessageBus> logger,
     IServiceScopeFactory serviceScopeFactory,
     MessageOptions options)
 {
     _logger              = logger;
     _subscriberManager   = subscriberManager;
     _serviceScopeFactory = serviceScopeFactory;
     _options             = options;
 }
예제 #3
0
 public DefaultMessageBus(IMessagePublisher publisher, IMessageSubscriberManager subscriber)
 {
     _publisher  = publisher;
     _subscriber = subscriber;
 }