public static Task <ApiResponse <bool> > TestApiAsync(INetworkProviderPrivate provider, ApiPrivateTestContext context) { return(ApiHelpers.WrapExceptionAsync(() => provider.TestPrivateApiAsync(context), nameof(TestApi), provider, context)); }
public static ApiResponse <bool> TestApi(INetworkProviderPrivate provider, ApiPrivateTestContext context) { return(AsyncContext.Run(() => TestApiAsync(provider, context))); }