/// <summary> /// Closes all sessions an application has with a token /// </summary> public void CloseAllSessions() { CKR rv = _p11.C_CloseAllSessions(_slotId); if (rv != CKR.CKR_OK) { throw new Pkcs11Exception("C_CloseAllSessions", rv); } }
/// <summary> /// Closes all sessions an application has with a token /// </summary> public void CloseAllSessions() { _logger.Debug("Slot({0})::CloseAllSessions", _slotId); _logger.Info("Closing all sessions with token in slot {0}", _slotId); CKR rv = _p11.C_CloseAllSessions(_slotId); if (rv != CKR.CKR_OK) { throw new Pkcs11Exception("C_CloseAllSessions", rv); } }