/// <summary> /// The List Dedicated Circuit operation retrieves a list of dedicated /// circuits owned by the customer. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.IAuthorizedDedicatedCircuitOperations. /// </param> /// <returns> /// The List Authorized Dedicated Circuit operation response. /// </returns> public static AuthorizedDedicatedCircuitListResponse List(this IAuthorizedDedicatedCircuitOperations operations) { return(Task.Factory.StartNew((object s) => { return ((IAuthorizedDedicatedCircuitOperations)s).ListAsync(); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <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._dedicatedCircuitServiceProviders = new DedicatedCircuitServiceProviderOperations(this); this._apiVersion = "2011-10-01"; this._longRunningOperationInitialTimeout = -1; this._longRunningOperationRetryTimeout = -1; this.HttpClient.Timeout = TimeSpan.FromSeconds(300); }
/// <summary> /// The Get Dedicated Circuit operation retrieves the specified /// authorized dedicated circuit. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.IAuthorizedDedicatedCircuitOperations. /// </param> /// <param name='serviceKey'> /// Required. The service key representing the circuit. /// </param> /// <returns> /// The Get Authorized Dedicated Circuit operation response. /// </returns> public static Task <AuthorizedDedicatedCircuitGetResponse> GetAsync(this IAuthorizedDedicatedCircuitOperations operations, string serviceKey) { return(operations.GetAsync(serviceKey, CancellationToken.None)); }
/// <summary> /// The List Dedicated Circuit operation retrieves a list of dedicated /// circuits owned by the customer. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.ExpressRoute.IAuthorizedDedicatedCircuitOperations. /// </param> /// <returns> /// The List Authorized Dedicated Circuit operation response. /// </returns> public static Task <AuthorizedDedicatedCircuitListResponse> ListAsync(this IAuthorizedDedicatedCircuitOperations operations) { return(operations.ListAsync(CancellationToken.None)); }