Пример #1
0
 protected override void Dispose(bool disposing)
 {
     _verifier = _verifier.SafeDispose();
     base.Dispose(disposing);
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TimeoutVerifier" /> class.
 /// </summary>
 /// <param name="keySet">The key set.</param>
 /// <param name="currentDateTime">The current date time provider.</param>
 public TimeoutVerifier(IKeySet keySet, Func <DateTime> currentDateTime = null)
     : base(keySet)
 {
     _verifier        = new TimeoutVerifierHelper(keySet, this);
     _currentDateTime = currentDateTime ?? (() => DateTime.Now);
 }