Ejemplo n.º 1
0
 /// <summary>
 /// Adds a repository countersignature for a given primary signature for tests.
 /// </summary>
 /// <param name="signatureProvider">Signature proivider to create the repository countersignature.</param>
 /// <param name="signature">Primary signature to add the repository countersignature.</param>
 /// <param name="request">RepositorySignPackageRequest containing the metadata for the signature request.</param>
 /// <param name="testLogger">ILogger.</param>
 /// <returns>Primary signature with a repository countersignature.</returns>
 public static async Task <PrimarySignature> RepositoryCountersignPrimarySignatureAsync(ISignatureProvider signatureProvider, PrimarySignature signature, RepositorySignPackageRequest request, TestLogger testLogger)
 {
     return(await signatureProvider.CreateRepositoryCountersignatureAsync(request, signature, testLogger, CancellationToken.None));
 }