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