Example #1
0
        private void Heartbeat(object state)
        {
            lock (_heartbeatTimerLock)
            {
                if (_heartbeatTimer == null)
                {
                    return;
                }
            }

            var heartbeatMessage = new HeartbeatMessage(_clientHostAddress);

            _outputChannel.SendOneWay(heartbeatMessage);
        }
Example #2
0
        public void Notify(string methodName, object[] parameters)
        {
            var payload             = Payload.Create(parameters, o => _eloquentClient.TryGetObjectId(o, out var id) ? id : null);
            var notificationMessage = payload.CreateNotificationMessage(_serializer, _clientHostAddress, _objectId, methodName);

            _outputChannel.SendOneWay(notificationMessage);
        }
Example #3
0
 private void SendEventToClient(EventMessage eventMessage)
 {
     _outputChannel.SendOneWay(eventMessage);
 }