Exemple #1
0
            public async Task <bool> HandleAsync(string subscriber, ProcessingMessage processingMessage, IMessageHandlerProvider messageHandlerProvider)
            {
                _queue.Enqueue(processingMessage);
                await Task.Delay(10);

                await processingMessage.CompleteAsync(new MessageExecutingResult(MessageExecutingStatus.Success, processingMessage.Message, subscriber));

                return(true);
            }