public void AddServiceMessage(IServiceMessage serviceMessage)
 {
     if (serviceMessage == null)
     {
         throw new ArgumentNullException(nameof(serviceMessage));
     }
     _processor.AddServiceMessage(_updaters.Aggregate(serviceMessage, (current, updater) => updater.UpdateServiceMessage(current)));
 }
Exemplo n.º 2
0
 public void WriteRawMessage(IServiceMessage message)
 {
     if (message == null)
     {
         throw new ArgumentNullException(nameof(message));
     }
     CheckConsistency();
     _processor.AddServiceMessage(message);
 }
 public void AddServiceMessage(IServiceMessage serviceMessage)
 {
     myProcessor.AddServiceMessage(myUpdaters.Aggregate(serviceMessage, (current, updater) => updater.UpdateServiceMessage(current)));
 }
 public void WriteRawMessage(IServiceMessage message)
 {
     CheckConsistency();
     myProcessor.AddServiceMessage(message);
 }