/// <summary>
            /// Send the message to the remote host
            /// </summary>
            /// <param name="message">The message to send</param>
            public void OnNext(T message)
            {
                IRemoteEvent <T> remoteEvent = new RemoteEvent <T>(_client.Link.LocalEndpoint,
                                                                   _client.Link.RemoteEndpoint,
                                                                   message);

                _client.Send(remoteEvent);
            }
Esempio n. 2
0
            /// <summary>
            /// Send the message to the remote host
            /// </summary>
            /// <param name="message">The message to send</param>
            public void OnNext(T message)
            {
                IRemoteEvent <T> remoteEvent = new RemoteEvent <T>(_client.Link.LocalEndpoint, _client.Link.RemoteEndpoint, message)
                {
                    Sequence = _messageCount
                };

                _messageCount++;
                _client.Send(remoteEvent);
            }