public void Dispose() { if (_service == null) { return; } _service.Dispose(); _service = null; }
public TradeVolumesClient(string serviceUrl) { if (string.IsNullOrWhiteSpace(serviceUrl)) { throw new ArgumentNullException(nameof(serviceUrl)); } _service = new TradeVolumesAPI(new Uri(serviceUrl)); }