예제 #1
0
        /// <summary>
        /// Gets the list of clients the user has signed into during their session.
        /// </summary>
        /// <returns></returns>
        public virtual async Task <IEnumerable <string> > GetClientListAsync()
        {
            await AuthenticateAsync();

            try
            {
                return(Properties.GetClientList());
            }
            catch (Exception ex)
            {
                Logger.LogError(ex, "Error decoding client list");
                // clear so we don't keep failing
                Properties.RemoveClientList();
                await UpdateSessionCookie();
            }

            return(Enumerable.Empty <string>());
        }