コード例 #1
0
 /// <summary>
 /// Performs an API request as an asynchronous task.
 /// </summary>
 /// <typeparam name="T">The type of the response object.</typeparam>
 /// <param name="connection">The connection.</param>
 /// <param name="request">The request object.</param>
 /// <returns>
 /// The task representing the request.
 /// </returns>
 protected Task <T> ExecuteAsync <T>(IIS24Connection connection, IRestRequest request) where T : new()
 {
     return(connection.ExecuteAsync <T>(request, UrlPath));
 }