public void WhenClosingTheProxy() => OnError.Continue(() => { if (Proxy.IsValueCreated) { Proxy.Value.Close(); } });
public void LogFilesAndCleanUp() => OnError.Continue(() => { foreach (var f in base.Repository) { try { f.Value.Stream.Dispose(); } catch { } //dump them all, even if one fails. } });
public void TeardownSelenium() => OnError.Continue(() => { _keepAlive.Dispose(); });