public void Dispose() { var task = _service.CloseAsync(null); task.Wait(); }
public void Dispose() { _service.CloseAsync(null).Wait(); _httpEndpoint.CloseAsync(null).Wait(); }