public static IMessageSubscriberManager SubscribeDomainCommands(this IMessageSubscriberManager subscriber) { subscriber.Subscribe <DomainCommandTransportMessage, IMessageHandler <DomainCommandTransportMessage> >(); subscriber.SubscribeAsync <DomainCommandTransportMessage, IAsyncMessageHandler <DomainCommandTransportMessage> >(); return(subscriber); }
public InMemoryMessageBus( IMessageSubscriberManager subscriberManager, ILogger <InMemoryMessageBus> logger, IServiceScopeFactory serviceScopeFactory, MessageOptions options) { _logger = logger; _subscriberManager = subscriberManager; _serviceScopeFactory = serviceScopeFactory; _options = options; }
public DefaultMessageBus(IMessagePublisher publisher, IMessageSubscriberManager subscriber) { _publisher = publisher; _subscriber = subscriber; }