public void Cleanup() { try { _wallet.Close(); _wallet.Delete(); _wallet = null; _pool.Close(); _pool.Delete(); _pool = null; foreach (string fileName in _filesCreated) { System.IO.File.Delete(fileName); } } catch (Exception ex) { Logger.Warn($"WriteDidAndQueryVeryKeyDemo failed to cleanup {ex.Message}"); } }
public void Cleanup() { try { _wallet.Close(); _wallet.Delete(); _wallet = null; _pool.Close(); _pool.Delete(); _pool = null; foreach (string fileName in _filesCreated) { System.IO.File.Delete(fileName); } } catch (Exception ex) { Logger.Warn($"AllPaymentDotNetPayTests failed to cleanup {ex.Message}"); } }