示例#1
0
 /// <summary>
 /// Called when [message].
 /// </summary>
 /// <param name="messageEnvelope">The message envelope.</param>
 /// <param name="specificSubscribers">The specific subscribers.</param>
 void OnMessage(IMessageEnvelope messageEnvelope, IList <string> specificSubscribers)
 {
     _logger.LogBusReceived(messageEnvelope, "");
     try
     {
         var session       = new SessionContext();
         var OnMessageCall = new OnMessageAsync(_subscriberManager.OnMessage);
         OnMessageCall.BeginInvoke(messageEnvelope, specificSubscribers, null, this);
     }
     catch (System.Exception exception)
     {
         _logger.LogBusReceivedFailure(messageEnvelope, exception.Message, exception);
     }
 }