I using the LibGit2Sharp.Credentials class for some time at the following way:
LibGit2Sharp.Credentials credentials = new UsernamePasswordCredentials()
{
Username = TokenValue,
Password = ""
};
var pushOptions = new PushOptions() { Credentials = credentials} ;
Now the LibGit2Sharp.PushOptions.Credentials is obsolate, I have to use CredentialsProvider.
I want to ask you what is the correct way to use CredentialsProvider
in this case?
Thank you very much!