Esempio n. 1
0
 /// <summary>
 /// The Begin Set Application Gateway Config operation  sets the
 /// specified config on the application gateway  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154114.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <param name='gatewayName'>
 /// Required. Gateway name
 /// </param>
 /// <param name='config'>
 /// Required. Parameters supplied to Set Application Gateway config
 /// request.
 /// </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 ApplicationGatewayOperationResponse SetConfig(this IL7GatewayOperations operations, string gatewayName, ApplicationGatewaySetConfiguration config)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IL7GatewayOperations)s).SetConfigAsync(gatewayName, config);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 2
0
 /// <summary>
 /// The Begin Create Application Gateway operation  creates Application
 /// Gateway with the specified  parameters.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154114.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Begin CreateApplication
 /// Gateway request.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static GatewayOperationResponse BeginCreateApplicationGateway(this IL7GatewayOperations operations, CreateApplicationGatewayParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IL7GatewayOperations)s).BeginCreateApplicationGatewayAsync(parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 3
0
 /// <summary>
 /// The Execute Application Gateway Operation executes specofoed
 /// operation in the Application Gateway.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154114.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <param name='gatewayName'>
 /// Required. Name of the gateway
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to Execute Operation request.
 /// </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 ApplicationGatewayOperationResponse ExecuteOperation(this IL7GatewayOperations operations, string gatewayName, ApplicationGatewayOperation parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IL7GatewayOperations)s).ExecuteOperationAsync(gatewayName, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 4
0
 /// <summary>
 /// The List Application Gateway operation retrieves all application
 /// gateays for the given subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj157196.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <returns>
 /// The response to a ListApplicationGateways request.
 /// </returns>
 public static ApplicationGatewayListResponse List(this IL7GatewayOperations operations)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IL7GatewayOperations)s).ListAsync();
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the
 /// ApplicationGatewayManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 private ApplicationGatewayManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._applicationGateways = new L7GatewayOperations(this);
     this._apiVersion          = "2014-05-01";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Esempio n. 6
0
 /// <summary>
 /// The Begin Create Application Gateway operation  creates Application
 /// Gateway with the specified  parameters.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154114.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Begin CreateApplication
 /// Gateway request.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <GatewayOperationResponse> BeginCreateApplicationGatewayAsync(this IL7GatewayOperations operations, CreateApplicationGatewayParameters parameters)
 {
     return(operations.BeginCreateApplicationGatewayAsync(parameters, CancellationToken.None));
 }
Esempio n. 7
0
 /// <summary>
 /// The Begin Set Application Gateway Config operation  sets the
 /// specified config on the application gateway  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154114.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <param name='gatewayName'>
 /// Required. Gateway name
 /// </param>
 /// <param name='config'>
 /// Required. Parameters supplied to Set Application Gateway config
 /// request.
 /// </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 <ApplicationGatewayOperationResponse> SetConfigAsync(this IL7GatewayOperations operations, string gatewayName, ApplicationGatewaySetConfiguration config)
 {
     return(operations.SetConfigAsync(gatewayName, config, CancellationToken.None));
 }
Esempio n. 8
0
 /// <summary>
 /// The List Application Gateway operation retrieves all application
 /// gateays for the given subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj157196.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <returns>
 /// The response to a ListApplicationGateways request.
 /// </returns>
 public static Task <ApplicationGatewayListResponse> ListAsync(this IL7GatewayOperations operations)
 {
     return(operations.ListAsync(CancellationToken.None));
 }
Esempio n. 9
0
 /// <summary>
 /// The Get Application Gateway Configuration operation retrieves the
 /// configuration of the gateway.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj157196.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <param name='gatewayName'>
 /// Required. The id  of the gateway.
 /// </param>
 /// <returns>
 /// The response to a GetApplicationGatewayConfiguation  request.
 /// </returns>
 public static Task <ApplicationGatewayConfiguration> GetConfigAsync(this IL7GatewayOperations operations, string gatewayName)
 {
     return(operations.GetConfigAsync(gatewayName, CancellationToken.None));
 }
Esempio n. 10
0
 /// <summary>
 /// The List Application Gateway operation retrieves the application
 /// gateways provisioned for the given subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj157196.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <param name='gatewayName'>
 /// Required. The name of the gateway.
 /// </param>
 /// <returns>
 /// The response body contains details of the application gateway.
 /// </returns>
 public static Task <ApplicationGatewayGetResponse> GetAsync(this IL7GatewayOperations operations, string gatewayName)
 {
     return(operations.GetAsync(gatewayName, CancellationToken.None));
 }
Esempio n. 11
0
 /// <summary>
 /// The Execute Application Gateway Operation executes specofoed
 /// operation in the Application Gateway.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154114.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <param name='gatewayName'>
 /// Required. Name of the gateway
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to Execute Operation request.
 /// </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 <ApplicationGatewayOperationResponse> ExecuteOperationAsync(this IL7GatewayOperations operations, string gatewayName, ApplicationGatewayOperation parameters)
 {
     return(operations.ExecuteOperationAsync(gatewayName, parameters, CancellationToken.None));
 }
Esempio n. 12
0
 /// <summary>
 /// The Begin Delete Application Gateway operation  deletes Application
 /// Gateway with the specified  parameters.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/jj154114.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.ApplicationGateway.IL7GatewayOperations.
 /// </param>
 /// <param name='gatewayName'>
 /// Required. The name of the gateway.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <GatewayOperationResponse> BeginDeleteApplicationGatewayAsync(this IL7GatewayOperations operations, string gatewayName)
 {
     return(operations.BeginDeleteApplicationGatewayAsync(gatewayName, CancellationToken.None));
 }