// Handle disconnected event private void OnDisconnected() { if (OnSessionDisconnected != null) { OnSessionDisconnected.Invoke(); } }
private void OnWsSessionDisconnected(object sender, ConnectionEventArgs e) { if (OnSessionDisconnected == null) { _logger?.LogDebug("WebSocket session [{id}] disconnected!", e.SessionId); } else { OnSessionDisconnected?.Invoke(sender, e); } }
public void FireSessionDisconnected(AudioSessionDisconnectReason DisconnectReason) { OnSessionDisconnected?.Invoke(this, DisconnectReason); }
public void InstallEvents(bool server) { Dispatch.Install <SteamRemotePlaySessionConnected_t>(x => OnSessionConnected?.Invoke(x.SessionID), server); Dispatch.Install <SteamRemotePlaySessionDisconnected_t>(x => OnSessionDisconnected?.Invoke(x.SessionID), server); }
/// <summary> /// Handle session disconnected notification /// </summary> /// <param name="session">Disconnected session</param> protected virtual void OnDisconnected(WsSession session) { OnSessionDisconnected?.Invoke(session, new ConnectionEventArgs(session.Id)); }