Exemple #1
0
 /// <summary>
 /// Sends the message.
 /// </summary>
 /// <param name="messageEnvelope">The message envelope.</param>
 public void SendMessage(IMessageEnvelope messageEnvelope)
 {
     try
     {
         var swatch = new System.Diagnostics.Stopwatch();
         swatch.Start();
         _sqlQueueHelper.SendMessage(messageEnvelope.MessageUID, _configuration.messageType.Name, _serializer.SerializeEnvelope(messageEnvelope), _configuration.serviceFrom.Name, _configuration.serviceTo.Name, _configuration.contract.Name, _connection);
         swatch.Stop();
     }
     catch (System.Exception ex)
     {
         _logger.LogError(ex.Message, ex);
         throw;
     }
 }