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

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

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