private async Task _processExceptionAsync<T>(string message, T exception, string source = null, object data = null) where T : Exception
 {
     var queueMessage = new ExceptionQueueMessage<T>(exception, message, source, data);
     await _queueProvider.AddMessageToQueueAsync(QueueStore.PROCESS_EXCEPTION, queueMessage);
 }
Beispiel #2
0
 public async Task PrepareMailQueueMessageAsync(string to, string subject, string body, string from, IEnumerable <string> additionalAddresses = null)
 {
     await _queueProvider.AddMessageToQueueAsync(QueueStore.NEW_MAIL, new MailQueueMessage(to, subject, body, from, additionalAddresses));
 }