コード例 #1
0
        private static void Initilize()
        {
            IKernel kernel = new StandardKernel();

            kernel.Load(Assembly.GetExecutingAssembly());
            _battleshipService = kernel.Get <IBattleshipService>();
            _players           = _battleshipService.GetPlayers();
        }
コード例 #2
0
 //DI to access the service actions.
 public BattleshipController(ILogger <BattleshipController> logger, IBattleshipService battleshipService, Response response)
 {
     this.logger            = logger;
     this.battleshipService = battleshipService;
     this.response          = response;
 }
コード例 #3
0
 public BattleshipStateTrackerController(IBattleshipService battleshipService)
 {
     _battleshipService = battleshipService;
 }
コード例 #4
0
 public BattleshipController(IBattleshipService boardService)
 {
     _boardService = boardService;
 }