public virtual void Dispose() { if (_fpeProcessor != null) { _fpeProcessor.ShutDown(); } if (_ffsCache != null) { _ffsCache.Dispose(); _ffsCache = null; } if (_fpeCache != null) { _fpeCache.Dispose(); _fpeCache = null; } if (_fpeTransactions != null) { _fpeTransactions.Dispose(); _fpeTransactions = null; } if (_ubiqWebServices != null) { _ubiqWebServices.Dispose(); _ubiqWebServices = null; } }
public void Dispose() { if (_ubiqWebServices != null) { // reports decryption key usage to server, if applicable ResetAsync().Wait(); _ubiqWebServices.Dispose(); _ubiqWebServices = null; } }
public virtual void Dispose() { if (_ubiqWebServices != null) { if (_encryptionKey != null) { // if key was used less times than requested, notify the server. if (_useCount < _usesRequested) { _ubiqWebServices.UpdateEncryptionKeyUsageAsync(_useCount, _usesRequested, _encryptionKey.KeyFingerprint, _encryptionKey.EncryptionSession).Wait(); } } _ubiqWebServices.Dispose(); _ubiqWebServices = null; } }