示例#1
0
        public override Task OnActivateAsync()
        {
            _virtualPlayers = _leagueService.GetPlayers()
                              .Take(22)
                              .Select(x => new MatchPlayer {
                Id = x.Id, Name = Name(x.FirstName, x.LastName)
            })
                              .ToArray();

            return(base.OnActivateAsync());
        }