Ejemplo n.º 1
0
 /// <summary>
 /// Gets a hierarchy of regions for use with the Geographic Traffic
 /// Routing Method.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.TrafficManager.IGeographicHierarchyOperations.
 /// </param>
 /// <returns>
 /// The response to a Traffic Manager profile 'CreateOrUpdate'
 /// operation.
 /// </returns>
 public static GeographicHierarchyGetResponse GetDefault(this IGeographicHierarchyOperations operations)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IGeographicHierarchyOperations)s).GetDefaultAsync();
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the TrafficManagerManagementClient
 /// class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public TrafficManagerManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._endpoints           = new EndpointOperations(this);
     this._geographicHierarchy = new GeographicHierarchyOperations(this);
     this._profiles            = new ProfileOperations(this);
     this._apiVersion          = "2017-03-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets a hierarchy of regions for use with the Geographic Traffic
 /// Routing Method.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.TrafficManager.IGeographicHierarchyOperations.
 /// </param>
 /// <returns>
 /// The response to a Traffic Manager profile 'CreateOrUpdate'
 /// operation.
 /// </returns>
 public static Task <GeographicHierarchyGetResponse> GetDefaultAsync(this IGeographicHierarchyOperations operations)
 {
     return(operations.GetDefaultAsync(CancellationToken.None));
 }