public void ActivityTestFixtureFixtureTeardown() { foreach (ActivityTestContext activityTestContext in ActivityTestContexts.Values) { activityTestContext.Dispose(); } LocalBus.Dispose(); if (_cancellationTokenSource != null) { _cancellationTokenSource.Dispose(); } if (_timer != null) { _timer.Dispose(); } _endpointCache.Clear(); if (EndpointCache != null) { EndpointCache.Dispose(); EndpointCache = null; } ServiceBusFactory.ConfigureDefaultSettings(x => { x.SetEndpointCache(null); }); }
public void Finally() { _endpointCache.Dispose(); }