public static Task <IHttpResponse> PostObjectAsync <T>( this HttpService http, string url, T obj, CancellationToken cancellationToken, CacheMode?cache = null, string?cacheKey = null, bool?repeat = null, int?timeoutSeconds = null) => http.PostObjectAsync(new Uri(url), obj, cancellationToken, cache: cache, cacheKey: cacheKey, repeat: repeat, timeoutSeconds: timeoutSeconds);
public static IHttpResponse PostObject <T>( this HttpService http, Uri uri, T obj, CacheMode?cache = null, string?cacheKey = null, bool?repeat = null, int?timeoutSeconds = null) => Task.Run(() => http.PostObjectAsync(uri, obj, Kit.CancellationToken, cache: cache, cacheKey: cacheKey, repeat: repeat, timeoutSeconds: timeoutSeconds)).Result;