/// <summary>
 /// Logs the session off, disconnecting any user that might be attached.
 /// </summary>
 /// <param name="synchronous">true to waits until the session is fully logged off before returning from the method. false to returns immediately, even though the session may not be completely logged off yet.</param>
 public void Logoff(bool synchronous = false)
 {
     NativeMethodsHelper.LogoffSession(this._server.Handle, this._sessionId, synchronous);
 }