ValueTask <string> getSessionID() { string session = ""; var sesh = ProtectedSessionStore.GetAsync <string>("session"); if (!sesh.IsFaulted) { return(sesh); } else { return(new ValueTask <string>(session)); } }
ValueTask <string> getSessionID() { string session = ""; return(ProtectedSessionStore.GetAsync <string>("session")); }
protected override async Task OnInitializedAsync() { currentCount = await ProtectedSessionStore.GetAsync <int>("count"); }