MatrixRoomUtils

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

_Imports.razor (875B)


      1 @using System.Net.Http
      2 @using System.Net.Http.Json
      3 @using Blazored.LocalStorage
      4 @using MatrixRoomUtils.Core
      5 @using Microsoft.AspNetCore.Components.Forms
      6 @using Microsoft.AspNetCore.Components.Routing
      7 @using Microsoft.AspNetCore.Components.Web
      8 @using Microsoft.AspNetCore.Components.Web.Virtualization
      9 @using Microsoft.AspNetCore.Components.WebAssembly.Http
     10 @using Microsoft.JSInterop
     11 @using MatrixRoomUtils.Web
     12 @using MatrixRoomUtils.Web.Classes
     13 @using MatrixRoomUtils.Web.Shared
     14 
     15 @inject ILocalStorageService LocalStorage
     16 @inject NavigationManager NavigationManager
     17 
     18 @code
     19 {
     20     
     21     protected override async Task OnInitializedAsync()
     22     {
     23         if (!RuntimeCache.WasLoaded)
     24         {
     25             await LocalStorageWrapper.LoadFromLocalStorage(LocalStorage);
     26             Console.WriteLine("Loaded from local storage");
     27             StateHasChanged();
     28         }
     29     }
     30 }