/* Shows how to perform an HTTP request to the API using ABP's dynamic c# proxy * feature. It is just simple as calling a local service method. * Authorization and HTTP request details are handled by the ABP framework. */ private async Task TestWithDynamicProxiesAsync() { Console.WriteLine(); Console.WriteLine($"***** {nameof(TestWithDynamicProxiesAsync)} *****"); var result = await _sampleAppService.GetAsync(); Console.WriteLine("Result: " + result.Value); result = await _sampleAppService.GetAuthorizedAsync(); Console.WriteLine("Result (authorized): " + result.Value); }
public async Task <SampleDto> GetAsync() { return(await _sampleAppService.GetAsync()); }
public async Task GetAsync() { var result = await _sampleAppService.GetAsync(); result.Value.ShouldBe(42); }
public async Task GetAsync() { var result = await _sampleAppService.GetAsync(); result.Count.ShouldBe(1); }
public async Task RunAsync() { using (CurrentTenant.Change(Guid.NewGuid())) { using (PluzIdentityClientSwitcher.Use("Internal")) { await Assert("Call SampleAppService with no auth.", async() => await _sampleAppService.GetAsync()); } } }
public async Task <List <Items> > GetAsync() { return(await _sampleAppService.GetAsync()); }