Exemple #1
0
 public async Task <IFeature> RegisterAsync(
     string resourceProviderNamespace,
     string featureName,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     return(WrapModel(await client.RegisterAsync(resourceProviderNamespace, featureName, cancellationToken)));
 }
 /// <summary>
 /// Registers the preview feature for the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceProviderNamespace'>
 /// The namespace of the resource provider.
 /// </param>
 /// <param name='featureName'>
 /// The name of the feature to register.
 /// </param>
 public static FeatureResult Register(this IFeaturesOperations operations, string resourceProviderNamespace, string featureName)
 {
     return(operations.RegisterAsync(resourceProviderNamespace, featureName).GetAwaiter().GetResult());
 }