コード例 #1
0
 public static ProfileData CreateAfdProfileData(CdnSkuName skuName) => new ProfileData("Global", new CdnSku
 {
     Name = skuName
 })
 {
     OriginResponseTimeoutSeconds = 60
 };
コード例 #2
0
        protected async Task <ProfileResource> CreateAfdProfile(ResourceGroupResource rg, string profileName, CdnSkuName skuName)
        {
            ProfileData input = ResourceDataHelper.CreateAfdProfileData(skuName);
            var         lro   = await rg.GetProfiles().CreateOrUpdateAsync(WaitUntil.Completed, profileName, input);

            return(lro.Value);
        }
コード例 #3
0
 public static ProfileData CreateAfdProfileData(CdnSkuName skuName) => new ProfileData("Global", new CdnSku {
     Name = skuName
 });
コード例 #4
0
 public static ProfileData CreateProfileData(CdnSkuName skuName) => new ProfileData(AzureLocation.WestUS, new CdnSku {
     Name = skuName
 });