示例#1
0
 // Handle disconnected event
 private void OnDisconnected()
 {
     if (OnSessionDisconnected != null)
     {
         OnSessionDisconnected.Invoke();
     }
 }
示例#2
0
 private void OnWsSessionDisconnected(object sender, ConnectionEventArgs e)
 {
     if (OnSessionDisconnected == null)
     {
         _logger?.LogDebug("WebSocket session [{id}] disconnected!", e.SessionId);
     }
     else
     {
         OnSessionDisconnected?.Invoke(sender, e);
     }
 }
示例#3
0
 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);
 }
示例#5
0
 /// <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));
 }