Ejemplo n.º 1
0
 public PlayerController(
     IRESTFulGameEngineListener gameEngineListener,
     IGameDataRepository gameDataRepository
     )
 {
     _gameEngineListener = gameEngineListener;
     _gameDataRepository = gameDataRepository;
 }
Ejemplo n.º 2
0
        public RESTFulService(
            IRESTFulGameEngineListener gameEngineListener,
            IGamePlayEngine gamePlayEngine,
            ICqrsLogicHandler logicHandler,
            IComponentContext componentContext,
            ILogFactory logFactory
            ) : base(componentContext, logFactory)
        {
            _gameEngineListener = gameEngineListener;
            _gamePlayEngine     = gamePlayEngine;

            _logicHandler = logicHandler;

            _log = logFactory.CreateForType(this);
        }