Beispiel #1
0
        public Task UnregisterForwardingAsync <TQuery>()
        {
            var message = new UnregisterQueryForwarding(typeof(TQuery));

            Console.WriteLine($"Sending 'UnregisterQueryForwarding' for query type '{message.QueryType.FullName}'.");

            return(_messageEndPoint.SendAsync(message));
        }
Beispiel #2
0
        public Task HandleAsync(UnregisterQueryForwarding message)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message));
            }

            Console.WriteLine($"Receiving 'UnregisterQueryForwarding' for query type '{message.QueryType.FullName}'.");

            return(_queryDispatcher.UnregisterForwardingAsync(message.QueryType));
        }