You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
555 B
19 lines
555 B
using System.Net.Http;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OpenApi
|
|
{
|
|
public static class IClientProxyExtensions
|
|
{
|
|
public static async Task<ApiResponse<TResult>> RequestAsync<TResult>(
|
|
this IClientProxy proxy,
|
|
HttpClient client,
|
|
string url,
|
|
string appKey,
|
|
string appSecret,
|
|
HttpMethod httpMethod)
|
|
{
|
|
return await proxy.RequestAsync<object, TResult>(client, url, appKey, appSecret, null, httpMethod);
|
|
}
|
|
}
|
|
}
|
|
|