コード例 #1
0
 /// <summary>
 /// Downloads the .nupkg file of a Package.
 /// </summary>
 /// <remarks>
 /// Required permissions: Packages.View.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 public static Stream DownloadPackageByKey(this IProcesses operations, string key)
 {
     return(operations.DownloadPackageByKeyAsync(key).GetAwaiter().GetResult());
 }
コード例 #2
0
 /// <summary>
 /// Downloads the .nupkg file of a Package.
 /// </summary>
 /// <remarks>
 /// Client Credentials Flow required permissions: Execution or Execution.Read.
 ///
 /// Required permissions: (Packages.View - Downloads a package from a Tenant
 /// Feed) and (FolderPackages.View - Downloads a package from a Folder Feed).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='key'>
 /// </param>
 /// <param name='feedId'>
 /// </param>
 public static Stream DownloadPackageByKey(this IProcesses operations, string key, System.Guid?feedId = default(System.Guid?))
 {
     return(operations.DownloadPackageByKeyAsync(key, feedId).GetAwaiter().GetResult());
 }