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