Ejemplo n.º 1
0
 internal INuGetFeed HandleFeed(SecretKeyStore keyStore, string url, string name, SimpleCredentials creds)
 {
     Debug.Assert(_feed == null && url.Equals(Url, StringComparison.OrdinalIgnoreCase));
     if (creds.IsSecretKeyName)
     {
         keyStore.DeclareSecretKey(creds.PasswordOrSecretKeyName, (s) => "PAT Used to authenticate CKli to the feeds, and retrieve informations about NuGet packages");
     }
     return(_feed = new ReadFeed(this, name, creds));
 }
Ejemplo n.º 2
0
 internal INuGetFeed HandleFeed(SecretKeyStore keyStore, string url, string name, SimpleCredentials creds)
 {
     Debug.Assert(_feed == null && url.Equals(Url, StringComparison.OrdinalIgnoreCase));
     if (creds?.IsSecretKeyName == true)
     {
         keyStore.DeclareSecretKey(creds.PasswordOrSecretKeyName, current => current?.Description
                                   ?? $"Used to enable CKli to retrieve informations about NuGet packages from feed '{name}' and to configure NuGet.config file.");
     }
     return(_feed = new ReadFeed(this, name, creds));
 }