protected virtual void OnSessionDisconnect(DisconnectSessionEventArgs e) { EventHandler <DisconnectSessionEventArgs> handler = SessionDisconnect; if (handler != null) { handler(this, e); } }
public void OnSessionDisconnected(AudioSessionDisconnectReason DisconnectReason) { // System.Diagnostics.Debug.WriteLine("SESSION DISCONNECTED. EVENT CLIENT"); if (SessionDisconnect != null) { DisconnectSessionEventArgs oDisConnectSessionEventArgs = new DisconnectSessionEventArgs(DisconnectReason); SessionDisconnect(this, oDisConnectSessionEventArgs); } }
public void OnSessionDisconnect(object sender, DisconnectSessionEventArgs e) { Debug.WriteLine("SESSION DISCONNECTED: " + e.DisconnectReason); OnSessionDisconnect(e); }