コード例 #1
0
 public void LogOut()
 {
     if (_disposed)
     {
         throw new ObjectDisposedException("SafeguardConnection");
     }
     if (!_authenticationMechanism.HasAccessToken())
     {
         return;
     }
     try
     {
         InvokeMethodFull(Service.Core, Method.Post, "Token/Logout");
         Log.Debug("Successfully logged out");
     }
     catch (Exception ex)
     {
         Log.Debug(ex, "Exception occurred during logout");
     }
     _authenticationMechanism.ClearAccessToken();
     Log.Debug("Cleared access token");
 }