コード例 #1
0
        public static IMessageSubscriberManager SubscribeDomainCommands(this IMessageSubscriberManager subscriber)
        {
            subscriber.Subscribe <DomainCommandTransportMessage, IMessageHandler <DomainCommandTransportMessage> >();
            subscriber.SubscribeAsync <DomainCommandTransportMessage, IAsyncMessageHandler <DomainCommandTransportMessage> >();

            return(subscriber);
        }
コード例 #2
0
 public async Task SubscribeAsync <TMessage, TMessageHandler>()
     where TMessage : IMessage
     where TMessageHandler : IAsyncMessageHandler <TMessage>
 => await _subscriber.SubscribeAsync <TMessage, TMessageHandler>();