コード例 #1
0
ファイル: HttpServiceExtensions.cs プロジェクト: chubrik/Kit
 public static Task <IHttpResponse> PostMultipartAsync(
     this HttpService http, string url, Dictionary <string, string> multipart, CancellationToken cancellationToken,
     CacheMode?cache = null, string?cacheKey = null, bool?repeat = null, int?timeoutSeconds = null) =>
 http.PostMultipartAsync(new Uri(url), multipart, cancellationToken,
                         cache: cache, cacheKey: cacheKey, repeat: repeat, timeoutSeconds: timeoutSeconds);
コード例 #2
0
ファイル: HttpServiceExtensions.cs プロジェクト: chubrik/Kit
 public static IHttpResponse PostMultipart(
     this HttpService http, Uri uri, Dictionary <string, string> multipart,
     CacheMode?cache = null, string?cacheKey = null, bool?repeat = null, int?timeoutSeconds = null) =>
 Task.Run(() => http.PostMultipartAsync(uri, multipart, Kit.CancellationToken,
                                        cache: cache, cacheKey: cacheKey, repeat: repeat, timeoutSeconds: timeoutSeconds)).Result;