private void Heartbeat(object state) { lock (_heartbeatTimerLock) { if (_heartbeatTimer == null) { return; } } var heartbeatMessage = new HeartbeatMessage(_clientHostAddress); _outputChannel.SendOneWay(heartbeatMessage); }
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); }
private void SendEventToClient(EventMessage eventMessage) { _outputChannel.SendOneWay(eventMessage); }