public GatewayGetOperationStatusResponse CreateGatewayConnection(GatewayConnectionCreateParameters parameters) { return gatewayClient.CreateGatewayConnection(parameters); }
/// <summary> /// The Begin Creating Virtual network Gateway connection operation /// creates a new network gateway connection. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IGatewayOperations. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Creating Gateway /// Connection operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static GatewayOperationResponse BeginCreatingGatewayConnection(this IGatewayOperations operations, GatewayConnectionCreateParameters parameters) { return Task.Factory.StartNew((object s) => { return ((IGatewayOperations)s).BeginCreatingGatewayConnectionAsync(parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// The Begin Creating Virtual network Gateway connection operation /// creates a new network gateway connection. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IGatewayOperations. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Creating Gateway /// Connection operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<GatewayOperationResponse> BeginCreatingGatewayConnectionAsync(this IGatewayOperations operations, GatewayConnectionCreateParameters parameters) { return operations.BeginCreatingGatewayConnectionAsync(parameters, CancellationToken.None); }
/// <summary> /// The Create Virtual network Gateway Connection operation creates a /// new network gateway. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IGatewayOperations. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Begin Creating Gateway /// Connection operation. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is in progress, 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<GatewayGetOperationStatusResponse> CreateGatewayConnectionAsync(this IGatewayOperations operations, GatewayConnectionCreateParameters parameters) { return operations.CreateGatewayConnectionAsync(parameters, CancellationToken.None); }