コード例 #1
0
        /// <inheritdoc />
        public async Task Reset()
        {
            await _protectedStore.Delete(TestIdentifier).ConfigureAwait(false);

            await _protectedStore.Delete(ProtectedStoreKeyIdentifier).ConfigureAwait(false);

            await _protectedStore.Delete(ProtectedStoreSaltIdentifier).ConfigureAwait(false);

            await _protectedStore.Delete(ProtectedStoreDeviceSaltIdentifier).ConfigureAwait(false);

            Clear();
        }
コード例 #2
0
        /// <inheritdoc />
        public async Task Reset()
        {
            try
            {
                await _protectedStore.Delete(TestIdentifier).ConfigureAwait(false);

                await _protectedStore.Delete(ProtectedStoreKeyIdentifier).ConfigureAwait(false);

                await _protectedStore.Delete(ProtectedStoreSaltIdentifier).ConfigureAwait(false);

                await _protectedStore.Delete(ProtectedStoreDeviceSaltIdentifier).ConfigureAwait(false);
            }
            catch (Exception)
            {
                // ignore
            }

            _protectedStore.Remove();
            Clear();
        }