/// <summary>
 /// The Get DedicatedCircuitPeeringRouteTableSummary operation retrives
 /// RouteTableSummary.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitPeeringRouteTableSummaryOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Required. The service key representing the circuit.
 /// </param>
 /// <param name='accessType'>
 /// Required. Whether the peering is private or public or microsoft.
 /// </param>
 /// <param name='devicePath'>
 /// Required. Whether the device is primary or secondary.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static ExpressRouteOperationResponse BeginGet(this IDedicatedCircuitPeeringRouteTableSummaryOperations operations, string serviceKey, BgpPeeringAccessType accessType, DevicePath devicePath)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IDedicatedCircuitPeeringRouteTableSummaryOperations)s).BeginGetAsync(serviceKey, accessType, devicePath);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// The Get Express Route operation status gets information on the
 /// status of Express Route operations in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154112.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitPeeringRouteTableSummaryOperations.
 /// </param>
 /// <param name='operationId'>
 /// Required. The id  of the operation.
 /// </param>
 /// <returns>
 /// The response body contains the status of the specified asynchronous
 /// operation, indicating whether it has succeeded, is inprogress, or
 /// has failed. Note that this status is distinct from the HTTP status
 /// code returned for the Get Operation Status operation itself.  If
 /// the asynchronous operation succeeded, the response body includes
 /// the HTTP status code for the successful request.  If the
 /// asynchronous operation failed, the response body includes the HTTP
 /// status code for the failed request, and also includes error
 /// information regarding the failure.
 /// </returns>
 public static ExpressRouteOperationStatusResponse GetOperationStatus(this IDedicatedCircuitPeeringRouteTableSummaryOperations operations, string operationId)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IDedicatedCircuitPeeringRouteTableSummaryOperations)s).GetOperationStatusAsync(operationId);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Beispiel #3
0
 /// <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 Get DedicatedCircuitPeeringRouteTableSummary operation retrives
 /// RouteTableSummary.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitPeeringRouteTableSummaryOperations.
 /// </param>
 /// <param name='serviceKey'>
 /// Required. The service key representing the circuit.
 /// </param>
 /// <param name='accessType'>
 /// Required. Whether the peering is private or public or microsoft.
 /// </param>
 /// <param name='devicePath'>
 /// Required. Whether the device is primary or secondary.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <ExpressRouteOperationResponse> BeginGetAsync(this IDedicatedCircuitPeeringRouteTableSummaryOperations operations, string serviceKey, BgpPeeringAccessType accessType, DevicePath devicePath)
 {
     return(operations.BeginGetAsync(serviceKey, accessType, devicePath, CancellationToken.None));
 }
 /// <summary>
 /// The Get Express Route operation status gets information on the
 /// status of Express Route operations in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154112.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ExpressRoute.IDedicatedCircuitPeeringRouteTableSummaryOperations.
 /// </param>
 /// <param name='operationId'>
 /// Required. The id  of the operation.
 /// </param>
 /// <returns>
 /// The response body contains the status of the specified asynchronous
 /// operation, indicating whether it has succeeded, is inprogress, or
 /// has failed. Note that this status is distinct from the HTTP status
 /// code returned for the Get Operation Status operation itself.  If
 /// the asynchronous operation succeeded, the response body includes
 /// the HTTP status code for the successful request.  If the
 /// asynchronous operation failed, the response body includes the HTTP
 /// status code for the failed request, and also includes error
 /// information regarding the failure.
 /// </returns>
 public static Task <ExpressRouteOperationStatusResponse> GetOperationStatusAsync(this IDedicatedCircuitPeeringRouteTableSummaryOperations operations, string operationId)
 {
     return(operations.GetOperationStatusAsync(operationId, CancellationToken.None));
 }