Beispiel #1
0
 private JSInit(IJSRuntime jsr, IJSObjectReference module) //, ProtectedLocalStorage ls, IJSInProcessRuntime jspr, IJSUnmarshalledRuntime jsur)
 {
     JSR = jsr;
     JSI = new JSInterop(module, JSR);
     LS  = new LocalStorage(JSI);
     //JSPR = jspr;
     //JSUR = jsur;
 }
Beispiel #2
0
        public async Task InitAsync()
        {
            if (JS == null)
            {
                JSinit = await JSInit.InitAsync(JSR);

                JS = JSinit.JSI;
                LS = JSinit.LS;
                DBG.SetLogger(JS.Log);
                DBG.SetSystem(ENV.IsWasm ? "CSB" : "SSB");
            }
        }
Beispiel #3
0
 public LocalStorage(JSInterop jsi)
 {
     JS = jsi;
 }