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