Beispiel #1
0
        public void SendEmail <T>(T message) where T : class
        {
            var lExchange = AppConstants.SEND_EMAIL_EXCHANGE_NAME;
            var lQueue    = AppConstants.SEND_EMAIL_QUEUE_NAME;
            var lRouteKey = AppConstants.SEND_EMAIL_ROUTING_KEY;

            mMessageQueueService.Publish(lExchange, lQueue, lRouteKey, message);
        }
Beispiel #2
0
 public async Task Add(AddEntryDto addEntryDto)
 {
     // TODO check that waking/sleeping flags for same date
     await _messageQueueService.Publish(addEntryDto).ConfigureAwait(false);
 }