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