Beispiel #1
0
        public async Task <string> Test01()
        {
            List <object> list = new List <object>();

            IOnlineUserCache cache = ServiceLocator.Instance.GetService <IOnlineUserCache>();
            OnlineUser       user  = cache.GetOrRefresh("admin");

            list.Add(user.ToJsonString());

            return(list.ExpandAndToString("\r\n"));
        }