public override void Dispose() { this._vssConection?.Dispose(); this._vssConection = null; this._witClient?.Dispose(); this._witClient = null; }
public override async Task Connect(string personalAccessToken) { _vssConection = _vssConection ?? new VssConnectionFacade(); await _vssConection.ConnectAsync(this.AccountUri, personalAccessToken); _witClient = await _vssConection.GetClientAsync(); }
public override async Task Connect(string personalAccessToken) { using (Logger.BeginScopeContext(nameof(Connect))) { _vssConection = _vssConection ?? new VssConnectionFacade(); await _vssConection.ConnectAsync(this.AccountUri, personalAccessToken); _witClient = await _vssConection.GetClientAsync(); } }