Exemple #1
0
        /// <summary>
        /// Called when [exception occurred].
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="Simon.SharpStreamingServer.Core.TExceptionEventArgs"/> instance containing the event data.</param>
        protected virtual void OnExceptionOccurred(object sender, TExceptionEventArgs e)
        {
            EventHandler <TExceptionEventArgs> handler = this.ExceptionOccurred;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #2
0
        /// <summary>
        /// Called when [exception occurred].
        /// </summary>
        /// <param name="ex">The ex.</param>
        protected virtual void OnExceptionOccurred(Exception ex)
        {
            EventHandler <TExceptionEventArgs> handler = this.ExceptionOccurred;

            if (handler != null)
            {
                TExceptionEventArgs e = new TExceptionEventArgs(ex);
                handler(this, e);
            }
        }