public void Dispose() { _sync?.Dispose(); _sync = null; _client?.Disconnect(); _client?.Dispose(); _client = null; }
/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public override void Dispose() { Log.Trace("AlpacaBrokerage.Dispose(): Disposing of Alpaca brokerage resources."); _cancellationTokenSource.Dispose(); _sockClient?.Dispose(); _natsClient?.Dispose(); _messagingRateLimiter.Dispose(); }
protected override void OnAfterEachTest() { _requester?.Disconnect(); _requester?.Dispose(); _requester = null; _responder?.Disconnect(); _responder?.Dispose(); _responder = null; }
public void Dispose() { _requester?.Disconnect(); _requester?.Dispose(); _requester = null; _responder?.Disconnect(); _responder?.Dispose(); _responder = null; }
protected override void OnAfterEachTest() { _client1?.Disconnect(); _client1?.Dispose(); _client1 = null; _client2?.Disconnect(); _client2?.Dispose(); _client2 = null; _client3?.Disconnect(); _client3?.Dispose(); _client3 = null; }
public void Dispose() { _sync?.Dispose(); _sync = null; _client1?.Disconnect(); _client1?.Dispose(); _client1 = null; _client2?.Disconnect(); _client2?.Dispose(); _client2 = null; _client3?.Disconnect(); _client3?.Dispose(); _client3 = null; }
protected override void OnAfterEachTest() { _client?.Disconnect(); _client?.Dispose(); _client = null; }