/// <summary> /// Event handler for close. /// </summary> /// <param name="sender">Sender object.</param> /// <param name="e">The event args.</param> private void OnProtocolClose(object sender, CloseFrameEventArgs e) { this.State = ProtocolSessionState.Closed; if (this.OnClose != null) { this.OnClose(this, e); } }