Hospital Management internal project. Build with Abp.io architecture.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
757 B

4 weeks ago
  1. using System;
  2. using System.Threading.Tasks;
  3. using Volo.Abp.Account;
  4. using Volo.Abp.DependencyInjection;
  5. namespace HospitalManagementSystem.HttpApi.Client.ConsoleTestApp;
  6. public class ClientDemoService : ITransientDependency
  7. {
  8. private readonly IProfileAppService _profileAppService;
  9. public ClientDemoService(IProfileAppService profileAppService)
  10. {
  11. _profileAppService = profileAppService;
  12. }
  13. public async Task RunAsync()
  14. {
  15. var output = await _profileAppService.GetAsync();
  16. Console.WriteLine($"UserName : {output.UserName}");
  17. Console.WriteLine($"Email : {output.Email}");
  18. Console.WriteLine($"Name : {output.Name}");
  19. Console.WriteLine($"Surname : {output.Surname}");
  20. }
  21. }