private static void socketClient_ClientException(object sender, TExceptionEventArgs e) { if (socketExceptionQueue.Count < 10) { socketExceptionQueue.Enqueue("[" + DateTime.Now.ToString("HH:mm:ss") + "] Client:" + e.ExceptionMessage); } }
private void SocketServer_ShowDebugMessage(object sender, TExceptionEventArgs e) { this.AddInfo("debug message: " + e.ExceptionMessage); }
private void SocketServer_DatabaseException(object sender, TExceptionEventArgs e) { //this.tb_DatabaseExceptionCount.Text = _socketServer.DatabaseExceptionCount.ToString(); this.AddInfo("operate database exception: " + e.ExceptionMessage); }
private void SocketServer_Exception(object sender, TExceptionEventArgs e) { //this.tb_ServerExceptionCount.Text = _socketServer.ServerExceptionCount.ToString(); this.AddInfo("Server exception: " + e.ExceptionMessage); }
/// <summary> /// Handles the ExceptionOccurred event of the rtspServer control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Simon.SharpStreaming.Core.TExceptionEventArgs"/> instance containing the event data.</param> void rtspServer_ExceptionOccurred(object sender, TExceptionEventArgs e) { AddServerInfo("An exception occurred: " + e.ExceptionMessage); }
private void SocketServer_DatabaseOpenException(object sender, TExceptionEventArgs e) { //this.tb_DatabaseExceptionCount.Text = _socketServer.DatabaseExceptionCount.ToString(); this.AddInfo("open database exception: " + e.ExceptionMessage); }
/// <summary> /// Handles the ExceptionOccurred event of the rtspClient control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Simon.SharpStreaming.Core.TExceptionEventArgs"/> instance containing the event data.</param> void rtspClient_ExceptionOccurred(object sender, TExceptionEventArgs e) { Utils.OutputMessage(false, MsgLevel.Error, "ClientForm -- rtspClientExceptionOccurred", e.ExceptionMessage); }