Beispiel #1
0
 public OnMessageHandler(TransportMock transport)
     : this(transport, x => true)
 {
 }
Beispiel #2
0
 public OnMessageHandler(TransportMock transport, Func <TMessage, bool> canBeHandled)
 {
     _transport    = transport;
     _canBeHandled = canBeHandled;
     transport.PluginMessageSent += OnTransportMessageReceived;
 }
 public void InitTransport(TransportMock transport)
 {
     _transport = transport;
 }