Esempio n. 1
0
 /// <summary>
 /// Get properties of an extension topic.
 /// </summary>
 /// <remarks>
 /// Get the properties of an extension topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='scope'>
 /// The identifier of the resource to which extension topic is queried. The
 /// scope can be a subscription, or a resource group, or a top level resource
 /// belonging to a resource provider namespace. For example, use
 /// '/subscriptions/{subscriptionId}/' for a subscription,
 /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
 /// resource group, and
 /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
 /// for Azure resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ExtensionTopic> GetAsync(this IExtensionTopicsOperations operations, string scope, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(scope, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Get properties of an extension topic.
 /// </summary>
 /// <remarks>
 /// Get the properties of an extension topic.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='scope'>
 /// The identifier of the resource to which extension topic is queried. The
 /// scope can be a subscription, or a resource group, or a top level resource
 /// belonging to a resource provider namespace. For example, use
 /// '/subscriptions/{subscriptionId}/' for a subscription,
 /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a
 /// resource group, and
 /// '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}'
 /// for Azure resource.
 /// </param>
 public static ExtensionTopic Get(this IExtensionTopicsOperations operations, string scope)
 {
     return(operations.GetAsync(scope).GetAwaiter().GetResult());
 }