TFS 2013 leaderboard to provide friendly competition amongst co-workers

TfsCredentialsProvider.cs 922B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Net;
  3. using Microsoft.TeamFoundation.Client;
  4. namespace pulse
  5. {
  6. /// <summary>
  7. /// TFS credential provider.
  8. /// </summary>
  9. /// <remarks>Currently not used but may want to.</remarks>
  10. public class TfsCredentialProvider : ICredentialsProvider
  11. {
  12. /// <summary>
  13. /// Gets the credentials.
  14. /// </summary>
  15. /// <param name="uri">The URI.</param>
  16. /// <param name="failedCredentials">The failed credentials.</param>
  17. /// <returns></returns>
  18. public ICredentials GetCredentials(Uri uri, ICredentials failedCredentials)
  19. {
  20. return new NetworkCredential("UserName", "Password", "Domain");
  21. }
  22. /// <summary>
  23. /// Notifies the credentials authenticated.
  24. /// </summary>
  25. /// <param name="uri">The URI.</param>
  26. /// <exception cref="System.NotImplementedException"></exception>
  27. public void NotifyCredentialsAuthenticated(Uri uri)
  28. {
  29. throw new NotImplementedException();
  30. }
  31. }
  32. }