예제 #1
0
 /// <summary>
 /// EdgeNodeInners are the global Point of Presence (POP) locations used to deliver
 /// CDN content to end users.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <EdgeNodeInner> > ListNextAsync(this IEdgeNodeInnersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Profiles           = new ProfilesOperations(this);
     Endpoints          = new EndpointsOperations(this);
     Origins            = new OriginsOperations(this);
     CustomDomains      = new CustomDomainsOperations(this);
     ResourceUsageInner = new ResourceUsageInnerOperations(this);
     Operations         = new Operations(this);
     EdgeNodeInners     = new EdgeNodeInnersOperations(this);
     BaseUri            = new System.Uri("https://management.azure.com");
     ApiVersion         = "2017-10-12";
     AcceptLanguage     = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DeliveryRuleAction>("name"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DeliveryRuleAction>("name"));
     SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DeliveryRuleCondition>("name"));
     DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DeliveryRuleCondition>("name"));
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }