samples/client/petstore/csharp/SwaggerClientTest/Lib/SwaggerClient/src/main/csharp/IO/Swagger/Client/ApiClient.cs
/// <summary>
/// Makes the asynchronous HTTP request.
/// </summary>
/// <param name="path">URL path.</param>
/// <param name="method">HTTP method.</param>
/// <param name="queryParams">Query parameters.</param>
/// <param name="postBody">HTTP body (POST request).</param>
/// <param name="headerParams">Header parameters.</param>
/// <param name="formParams">Form parameters.</param>
/// <param name="fileParams">File parameters.</param>
/// <param name="pathParams">Path parameters.</param>
/// <returns>The Task instance.</returns>
Makes the asynchronous HTTP request.
Makes the asynchronous HTTP request .
public async System.Threading.Tasks.Task<Object> CallApiAsync(
            String path, RestSharp.Method method, Dictionary<String, String> queryParams, String postBody,
            Dictionary<String, String> headerParams, Dictionary<String, String> formParams,
            Dictionary<String, FileParameter> fileParams, Dictionary<String, String> pathParams)
        {
            var request = PrepareRequest(
                path, method, queryParams, postBody, headerParams, formParams, fileParams, pathParams);
            var response = await RestClient.ExecuteTaskAsync(request);
            return (Object)response;
        }
public async System . Threading . Tasks . Task < Object > CallApiAsync ( String path , RestSharp . Method method , Dictionary < String , String > queryParams , String postBody , Dictionary < String , String > headerParams , Dictionary < String , String > formParams , Dictionary < String , FileParameter > fileParams , Dictionary < String , String > pathParams ) { var request = PrepareRequest ( path , method , queryParams , postBody , headerParams , formParams , fileParams , pathParams ) ; var response = await RestClient . ExecuteTaskAsync ( request ) ; return ( Object ) response ; }
Makes the asynchronous HTTP request.
Makes the asynchronous HTTP request .
The Task instance.
The Task instance .
path
String
None
method
RestSharp.Method
None
queryParams
Dictionary<String, String>
None
postBody
String
HTTP body (POST request).
HTTP body ( POST request ) .
headerParams
Dictionary<String, String>
None
formParams
Dictionary<String, String>
None
fileParams
Dictionary<String, FileParameter>
None
pathParams
Dictionary<String, String>
None