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); }
public Task SendAsync(IEnumerable <BrokeredMessage> brokeredMessages) { MessageSender.ValidateMessages(brokeredMessages); return(this.OnSendAsync(brokeredMessages)); }