예제 #1
0
        public Task <bool> IsStreamerAsync()
        {
            return(Task.Run(() =>
            {
                var session = GetSession();
                if (session == null)
                {
                    return false;
                }

                var user = gameData.GetUser(session.AccountId);
                if (user == null)
                {
                    return false;
                }

                return gameData.FindSession(x => x.UserId == user.Id) != null;
            }));
        }