示例#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)));
 }