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.
 
 
 
 

33 lines
793 B

  1. using Microsoft.JSInterop;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace AbrBlazorTools
  7. {
  8. public class LoadingSpinner : ILoadingSpinner
  9. {
  10. private readonly IJSRuntime _jSRuntime;
  11. public LoadingSpinner(IJSRuntime jSRuntime)
  12. {
  13. _jSRuntime = jSRuntime;
  14. }
  15. public async Task HideLoading()
  16. {
  17. //await Task.Delay(1000);
  18. //await _jSRuntime.InvokeVoidAsync("methods.HideLoading", null);
  19. }
  20. public async Task ShowLoading()
  21. {
  22. //await _jSRuntime.InvokeVoidAsync("methods.ShowLoading", null);
  23. }
  24. }
  25. public interface ILoadingSpinner
  26. {
  27. Task ShowLoading();
  28. Task HideLoading();
  29. }
  30. }