microsoft / azure-devops-dotnet-samples

.NET/C# samples for integrating with Azure DevOps Services and Azure DevOps Server
https://docs.microsoft.com/azure/devops/integrate
MIT License
519 stars 511 forks source link

Shouldn't the caller Dispose() the instances returned by TfsConnection.GetClient<T> ? #274

Open spashx opened 4 years ago

spashx commented 4 years ago

TfsConnection.GetClient is returning disposable objects. The documentation and the examples are not disposing the objects once used.

Could you clarify if the caller should Dispose() the instances returned by TfsConnection.GetClient or not ? Thank you.