コード例 #1
0
ファイル: MessageSender.cs プロジェクト: ritasker/uBlogger
        public async Task SendAsync(IEnumerable <BrokeredMessage> brokeredMessages)
        {
            int count = MessageSender.ValidateMessages(brokeredMessages);

            MessagingEventSource.Log.MessageSendStart(this.ClientId, count);

            try
            {
                await this.OnSendAsync(brokeredMessages).ConfigureAwait(false);
            }
            catch (Exception exception)
            {
                MessagingEventSource.Log.MessageSendException(this.ClientId, exception);
                throw;
            }

            MessagingEventSource.Log.MessageSendStop(this.ClientId);
        }
コード例 #2
0
 public Task SendAsync(IEnumerable <BrokeredMessage> brokeredMessages)
 {
     MessageSender.ValidateMessages(brokeredMessages);
     return(this.OnSendAsync(brokeredMessages));
 }