Example #1
0
        ValueTask <string> getSessionID()
        {
            string session = "";
            var    sesh    = ProtectedSessionStore.GetAsync <string>("session");

            if (!sesh.IsFaulted)
            {
                return(sesh);
            }
            else
            {
                return(new ValueTask <string>(session));
            }
        }
Example #2
0
        ValueTask <string> getSessionID()
        {
            string session = "";

            return(ProtectedSessionStore.GetAsync <string>("session"));
        }
Example #3
0
 protected override async Task OnInitializedAsync()
 {
     currentCount = await ProtectedSessionStore.GetAsync <int>("count");
 }