Beispiel #1
0
        /// <summary>
        /// Called when [client session updated].
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="Simon.SharpStreamingServer.Core.TClientSessionEventArgs"/> instance containing the event data.</param>
        protected virtual void OnClientSessionUpdated(object sender, TClientSessionEventArgs e)
        {
            EventHandler <TClientSessionEventArgs> handler = this.ClientSessionUpdated;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        /// <summary>
        /// Called when [client session updated].
        /// </summary>
        /// <param name="clientSessionInfo">The client session info.</param>
        protected virtual void OnClientSessionUpdated(ClientSessionInfo clientSessionInfo)
        {
            EventHandler <TClientSessionEventArgs> handler = this.ClientSessionUpdated;

            if (handler != null)
            {
                TClientSessionEventArgs e = new TClientSessionEventArgs(clientSessionInfo);
                handler(this, e);
            }
        }
Beispiel #3
0
        /// <summary>
        /// Called when [client session timeout].
        /// </summary>
        /// <param name="clientSession">The client session.</param>
        protected virtual void OnClientSessionTimeout(ClientSession clientSession)
        {
            Interlocked.Decrement(ref curConnectionCount);

            EventHandler <TClientSessionEventArgs> handler = this.ClientSessionTimeout;

            if (handler != null)
            {
                TClientSessionEventArgs e = new TClientSessionEventArgs(clientSession);
                handler(this, e);
            }
        }