/// <summary> /// The List Dedicated Circuit Service Providers operation retrieves a /// list of available dedicated circuit service providers. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitServiceProviderOperations. /// </param> /// <returns> /// The List Dedicated Circuit Service Provider operation response. /// </returns> public static DedicatedCircuitServiceProviderListResponse List(this IDedicatedCircuitServiceProviderOperations operations) { return(Task.Factory.StartNew((object s) => { return ((IDedicatedCircuitServiceProviderOperations)s).ListAsync(); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the ExpressRouteManagementClient /// class. /// </summary> private ExpressRouteManagementClient() : base() { this._bgpPeering = new BgpPeeringOperations(this); this._crossConnection = new CrossConnectionOperations(this); this._dedicatedCircuitLink = new DedicatedCircuitLinkOperations(this); this._dedicatedCircuit = new DedicatedCircuitOperations(this); this._dedicatedCircuitServiceProvider = new DedicatedCircuitServiceProviderOperations(this); this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// Initializes a new instance of the ExpressRouteManagementClient /// class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> private ExpressRouteManagementClient(HttpClient httpClient) : base(httpClient) { this._borderGatewayProtocolPeerings = new BorderGatewayProtocolPeeringOperations(this); this._crossConnections = new CrossConnectionOperations(this); this._dedicatedCircuitLinks = new DedicatedCircuitLinkOperations(this); this._dedicatedCircuits = new DedicatedCircuitOperations(this); this._dedicatedCircuitServiceProviders = new DedicatedCircuitServiceProviderOperations(this); this._apiVersion = "2011-10-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// The List Dedicated Circuit Service Providers operation retrieves a /// list of available dedicated circuit service providers. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitServiceProviderOperations. /// </param> /// <returns> /// The List Dedicated Circuit Service Provider operation response. /// </returns> public static DedicatedCircuitServiceProviderListResponse List(this IDedicatedCircuitServiceProviderOperations operations) { try { return(operations.ListAsync().Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Initializes a new instance of the ExpressRouteManagementClient /// class. /// </summary> /// <param name='httpClient'> /// The Http client /// </param> public ExpressRouteManagementClient(HttpClient httpClient) : base(httpClient) { this._authorizedDedicatedCircuits = new AuthorizedDedicatedCircuitOperations(this); this._borderGatewayProtocolPeerings = new BorderGatewayProtocolPeeringOperations(this); this._crossConnections = new CrossConnectionOperations(this); this._dedicatedCircuitLinkAuthorizationMicrosoftIds = new DedicatedCircuitLinkAuthorizationMicrosoftIdOperations(this); this._dedicatedCircuitLinkAuthorizations = new DedicatedCircuitLinkAuthorizationOperations(this); this._dedicatedCircuitLinks = new DedicatedCircuitLinkOperations(this); this._dedicatedCircuits = new DedicatedCircuitOperations(this); this._dedicatedCircuitPeeringArpInfo = new DedicatedCircuitPeeringArpInfoOperations(this); this._dedicatedCircuitPeeringRouteTableInfo = new DedicatedCircuitPeeringRouteTableInfoOperations(this); this._dedicatedCircuitPeeringRouteTableSummary = new DedicatedCircuitPeeringRouteTableSummaryOperations(this); this._dedicatedCircuitServiceProviders = new DedicatedCircuitServiceProviderOperations(this); this._dedicatedCircuitStats = new DedicatedCircuitStatsOperations(this); this._apiVersion = "2011-10-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// The List Dedicated Circuit Service Providers operation retrieves a /// list of available dedicated circuit service providers. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitServiceProviderOperations. /// </param> /// <returns> /// The List Dedicated Circuit Service Provider operation response. /// </returns> public static Task <DedicatedCircuitServiceProviderListResponse> ListAsync(this IDedicatedCircuitServiceProviderOperations operations) { return(operations.ListAsync(CancellationToken.None)); }