/// <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();
 }
 /// <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);
 }