Пример #1
0
        public GameInningTeamBatterService()
        {
            var mapConfig = new MapperConfiguration(c => c.CreateMap <Domain.GameInningTeamBatter, GameInningTeamBatterDto>());

            Mapper = mapConfig.CreateMapper();

            EventService = new GameEventService();
        }
 public GameEventParticipation(
     IGameEventParticipationService gameEventParticipationService,
     IGameEventService gameEventService,
     IOptions <HostConfiguration> hostConfiguration)
 {
     _gameEventParticipationService = gameEventParticipationService;
     _gameEventService  = gameEventService;
     _hostConfiguration = hostConfiguration.Value;
 }
Пример #3
0
 protected override void OnInit(BaseContext context, IServiceContainer services)
 {
     _context = (Context)context;
     //BuildInServices
     _randomService        = services.GetService <IRandomService>();
     _timeMachineService   = services.GetService <ITimeMachineService>();
     _globalStateService   = services.GetService <IGlobalStateService>();
     _viewService          = services.GetService <IViewService>();
     _audioService         = services.GetService <IAudioService>();
     _inputService         = services.GetService <IInputService>();
     _map2DService         = services.GetService <IMap2DService>();
     _resService           = services.GetService <IResService>();
     _effectService        = services.GetService <IEffectService>();
     _eventRegisterService = services.GetService <IEventRegisterService>();
     _idService            = services.GetService <IIdService>();
     _debugService         = services.GetService <IDebugService>();
     //GameServices
     _gameStateService  = services.GetService <IGameStateService>();
     _gameConfigService = services.GetService <IGameConfigService>();
     _gameEventService  = services.GetService <IGameEventService>();
 }
 public GameEventsListViewComponent(IGameEventService gameEventService)
 {
     _gameEventService = gameEventService;
 }
Пример #5
0
 public GameEventController(IGameEventService gameEventService)
 {
     _gameEventService = gameEventService;
 }