/// <summary> /// Checkin the manifest. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='providerNamespace'> /// The name of the resource provider hosted within ProviderHub. /// </param> /// <param name='checkinManifestParams'> /// The required body parameters supplied to the checkin manifest operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CheckinManifestInfo> CheckinManifestAsync(this IProviderHubClient operations, string providerNamespace, CheckinManifestParams checkinManifestParams, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckinManifestWithHttpMessagesAsync(providerNamespace, checkinManifestParams, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Generates the manifest for the given provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='providerNamespace'> /// The name of the resource provider hosted within ProviderHub. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ResourceProviderManifest> GenerateManifestAsync(this IProviderHubClient operations, string providerNamespace, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GenerateManifestWithHttpMessagesAsync(providerNamespace, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Checkin the manifest. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='providerNamespace'> /// The name of the resource provider hosted within ProviderHub. /// </param> /// <param name='checkinManifestParams'> /// The required body parameters supplied to the checkin manifest operation. /// </param> public static CheckinManifestInfo CheckinManifest(this IProviderHubClient operations, string providerNamespace, CheckinManifestParams checkinManifestParams) { return(operations.CheckinManifestAsync(providerNamespace, checkinManifestParams).GetAwaiter().GetResult()); }
/// <summary> /// Generates the manifest for the given provider. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='providerNamespace'> /// The name of the resource provider hosted within ProviderHub. /// </param> public static ResourceProviderManifest GenerateManifest(this IProviderHubClient operations, string providerNamespace) { return(operations.GenerateManifestAsync(providerNamespace).GetAwaiter().GetResult()); }