Describes a reason for the connection being closed.
Inheritance: System.EventArgs
Example #1
0
 private void OnSessionClosing(object sender, ConnectionClosingEventArgs args)
 {
     var session = (IServerSession)sender;
     this.logger.Debug(@"Session #{0} closing: {1}", session.NetworkSessionId, args.Reason);
 }
 private void OnClosing(object sender, ConnectionClosingEventArgs e)
 {
     var handler = this.Closing;
     if (handler != null)
     {
         handler(this, e);
     }
 }
 private void OnClosing(object sender, ConnectionClosingEventArgs e)
 {
     Closing?.Invoke(this, e);
 }