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; }
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"); } }
public LocalStorage(JSInterop jsi) { JS = jsi; }