Example #1
0
 public void SendMessage(CommandAdapterMessage commandAdapterMessage)
 {
     foreach (var adapter in _adapters.Where(adapter => adapter.Type == commandAdapterMessage.Adapter && adapter.Identifier == commandAdapterMessage.Id))
     {
         adapter.HandleWebMessage(commandAdapterMessage.Payload);
     }
 }
Example #2
0
 public void SendMessage(CommandAdapterMessage commandAdapterMessage)
 {
     foreach (var commandAdapter in _commandAdapters)
     {
         commandAdapter.SendMessage(commandAdapterMessage);
     }
 }