/// <summary>
 /// 完成
 /// </summary>
 /// <param name="messageResult">消息结果</param>
 /// <returns></returns>
 public async Task CompleteAsync(MessageExecutingResult messageResult)
 {
     await ExecutingContext.NotifyMessageExecutedAsync(messageResult);
 }
Пример #2
0
 private async Task CompleteMessageAsync(string subscriber, ProcessingMessage processingMessage, MessageExecutingStatus commandStatus, string resultType, string result, string stackTrace = null)
 {
     var commandResult = new MessageExecutingResult(commandStatus, processingMessage.Message, subscriber, result, resultType, stackTrace);
     await processingMessage.CompleteAsync(commandResult).ConfigureAwait(false);
 }