Esempio n. 1
0
 public async Task <bool> CheckExistenceAsync(
     string resourceGroupName,
     string resourceProviderNamespace,
     string parentResourcePath,
     string resourceType,
     string resourceName,
     string apiVersion,
     CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await Inner.CheckExistenceAsync(
                resourceGroupName,
                resourceProviderNamespace,
                parentResourcePath,
                resourceType,
                resourceName,
                apiVersion,
                cancellationToken));
 }
 public async Task <bool> CheckExistenceAsync(
     string resourceGroupName,
     string resourceProviderNamespace,
     string parentResourcePath,
     string resourceType,
     string resourceName,
     string apiVersion = default(string),
     CancellationToken cancellationToken = default(CancellationToken))
 {
     if (string.IsNullOrEmpty(apiVersion))
     {
         string resourceId = ResourceUtils.ConstructResourceId(Manager.Inner.SubscriptionId, resourceGroupName, resourceProviderNamespace, resourceType, resourceName, parentResourcePath);
         apiVersion = await GetApiVersionAsync(resourceId, Manager, cancellationToken);
     }
     return(await Inner.CheckExistenceAsync(
                resourceGroupName,
                resourceProviderNamespace,
                parentResourcePath,
                resourceType,
                resourceName,
                apiVersion,
                cancellationToken));
 }