public void Dispose() { if (!_disposed) { // Closing the http listener Stop(); // Disposing the PortReserver PortReserver.Dispose(); _disposed = true; } }
public void Dispose() { _testPort.Dispose(); HttpClient.Dispose(); _server.CloseAsync().Wait(); }