Leave() public method

public Leave ( ) : void
return void
 /// <summary>
 ///  Leave the current session.
 /// </summary>
 public void LeaveCurrentSession()
 {
     using (Session currentSession = GetCurrentSession())
     {
         if (currentSession != null)
         {
             currentSession.Leave();
         }
     }
 }