private static void Initilize() { IKernel kernel = new StandardKernel(); kernel.Load(Assembly.GetExecutingAssembly()); _battleshipService = kernel.Get <IBattleshipService>(); _players = _battleshipService.GetPlayers(); }
//DI to access the service actions. public BattleshipController(ILogger <BattleshipController> logger, IBattleshipService battleshipService, Response response) { this.logger = logger; this.battleshipService = battleshipService; this.response = response; }
public BattleshipStateTrackerController(IBattleshipService battleshipService) { _battleshipService = battleshipService; }
public BattleshipController(IBattleshipService boardService) { _boardService = boardService; }