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
522 stars 519 forks source link

Could you add examples of how to logout? #70

Closed nickform closed 6 years ago

nickform commented 7 years ago

This documentation page on VisualStudio.com describes how to create a Visual Studio sign-in prompt with:

VssConnection connection = new VssConnection(new Uri(collectionUri), new VssClientCredentials());

but I cannot find a sensible way to logout. Could you add an example?

justmarks commented 6 years ago

connection.Disconnect() should work