private void _typedConnection_NewMessage(ITypedConnection <ISerializableMessage> arg1, ISerializableMessage arg2, ushort sequenceId) { if (arg2 is TestControl) { _trace.Info("Got Stop signal"); RemoteServer.StopEvent.Set(); } RemoteServer.TestOutputFile.WriteLine(_connectionId + ":" + arg2.ToString()); }
private void _typedConnection_NewMessage(ITypedConnection <T> arg1, T arg2, ushort arg3) { arg2.SequenceId = arg3; NewMessage?.Invoke(this, arg2); }