コード例 #1
0
        public DeleteCommand(IBookService bookService, IMovieService movieService, IStarService starService, IStudioService studioService)
        {
            if (bookService == null)
            {
                throw new ArgumentNullException("Book service cannot be null.");
            }

            if (movieService == null)
            {
                throw new ArgumentNullException("Movie service cannot be null.");
            }

            if (starService == null)
            {
                throw new ArgumentNullException("Star service cannot be null.");
            }

            if (studioService == null)
            {
                throw new ArgumentNullException("Studio service cannot be null.");
            }

            this.bookService   = bookService;
            this.movieService  = movieService;
            this.starService   = starService;
            this.studioService = studioService;
        }
コード例 #2
0
        public void Initialize()
        {
            IKernel kernel = new StandardKernel(new ServerModule());

            _starService = kernel.Get <IStarService>();
            _itemService = kernel.Get <IItemService>();
        }
コード例 #3
0
        public MovieService(
            IRepository <Movie> movieRepository,
            IUnitOfWork unitOfWork,
            IMovieFactory movieFactory,
            IProducerService producerService,
            IStudioService studioService,
            IGenreService genreService,
            IBookService bookService,
            IStarService starService)
        {
            if (movieRepository == null)
            {
                throw new ArgumentNullException("Movie repository cannot be null!");
            }

            if (unitOfWork == null)
            {
                throw new ArgumentNullException("Unit of work cannot be null!");
            }

            if (movieFactory == null)
            {
                throw new ArgumentNullException("Movie factory cannot be null!");
            }

            if (producerService == null)
            {
                throw new ArgumentNullException("Producer service cannot be null!");
            }

            if (studioService == null)
            {
                throw new ArgumentNullException("Studio service cannot be null!");
            }

            if (genreService == null)
            {
                throw new ArgumentNullException("Genre service cannot be null!");
            }

            if (bookService == null)
            {
                throw new ArgumentNullException("Book service cannot be null!");
            }

            if (starService == null)
            {
                throw new ArgumentNullException("Star service cannot be null!");
            }

            this.movieRepository = movieRepository;
            this.unitOfWork      = unitOfWork;
            this.movieFactory    = movieFactory;
            this.producerService = producerService;
            this.studioService   = studioService;
            this.genreService    = genreService;
            this.bookService     = bookService;
            this.starService     = starService;
        }
コード例 #4
0
ファイル: LevelFinishedState.cs プロジェクト: outscal/hitman
 public LevelFinishedState(SignalBus signalBus, GameService service, ISaveService SaveService, IPathService pathService, int level, IStarService starService)
 {
     this.starService = starService;
     currentLevel     = level;
     this.saveService = SaveService;
     this.pathService = pathService;
     this.service     = service;
     this.signalBus   = signalBus;
 }
コード例 #5
0
ファイル: GameService.cs プロジェクト: outscal/hitman
 public GameService(SignalBus signalBus, ScriptableLevels levels, IPathService pathService, ISaveService saveService, IStarService starService)
 {
     this.pathService = pathService;
     this.levels      = levels;
     this.signalBus   = signalBus;
     this.starService = starService;
     this.saveService = saveService;
     signalBus.Subscribe <LevelFinishedSignal>(ChangeToLevelFinishedState);
     //pathService.DrawGraph(levels.levelsList[currentLevel]);
 }
コード例 #6
0
 public NotificationHub(IUserService userService, IConfiguration configuration, IFollowService followService,
                        IPostService postService, IImageService imageService, IStarService starService)
 {
     _userService   = userService;
     _configuration = configuration;
     _followService = followService;
     _postService   = postService;
     _imageService  = imageService;
     _starService   = starService;
 }
コード例 #7
0
 public StarController(
     IStarService starService,
     IEnumMappingService enumMappingService,
     IAuthorizationService authorizationService,
     ICatalogService catalogService)
     : base(authorizationService, enumMappingService)
 {
     _starService          = starService;
     _enumMappingService   = enumMappingService;
     _authorizationService = authorizationService;
     _catalogService       = catalogService;
 }
コード例 #8
0
        private static void Main()
        {
            threadConsole = new Thread(ConsoleThread);
            threadConsole.Start();
            IKernel kernel = new StandardKernel(new ServerModule());

            _gameService = kernel.Get <IGameService>();
            _mobService  = kernel.Get <IMobService>();
            _userService = kernel.Get <IUserService>();
            _starService = kernel.Get <IStarService>();
            _itemService = kernel.Get <IItemService>();
            General.InitializeServer();
        }
コード例 #9
0
 public DiscoveriesController(
     IDiscoveryService discoveryService,
     IPlanetService planetService,
     IStarService starService,
     ITelescopeService telescopeService,
     IUserService userService,
     UserManager <User> userManager)
 {
     this.discoveryService = discoveryService;
     this.planetService    = planetService;
     this.starService      = starService;
     this.telescopeService = telescopeService;
     this.userService      = userService;
     this.userManager      = userManager;
 }
コード例 #10
0
ファイル: EnemyService.cs プロジェクト: outscal/hitman
        public EnemyService(IPlayerService _playerService, IStarService _starService, IPathService _pathService, EnemyScriptableObjectList enemyList, SignalBus _signalBus, IGameService _gameService)
        {
            pathService   = _pathService;
            gameService   = _gameService;
            playerService = _playerService;
            starService   = _starService;

            signalBus = _signalBus;
            enemyScriptableObjectList = enemyList;

            signalBus.Subscribe <EnemyKillSignal>(EnemyDead);
            signalBus.Subscribe <StateChangeSignal>(OnTurnStateChange);
            signalBus.Subscribe <ResetSignal>(ResetEnemy);
            signalBus.Subscribe <GameStartSignal>(OnGameStart);
            signalBus.Subscribe <SignalAlertGuards>(AlertEnemies);
        }
コード例 #11
0
        public UserController(IUserService userService, IConfiguration configuration, IStarService starService,
                              IFollowService followService, IPostService postService, IImageService imageService,
                              IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _userService      = userService;
            _configuration    = configuration;
            _followService    = followService;
            _postService      = postService;
            _imageService     = imageService;
            _cloudinaryConfig = cloudinaryConfig;
            _starService      = starService;

            Account account = new Account(_cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey,
                                          _cloudinaryConfig.Value.ApiSecret);

            _cloudinary = new Cloudinary(account);
        }
コード例 #12
0
        public PostController(IStarService starService, IPostService postService, IStepService stepService,
                              IIngredientService ingredientService,
                              IImageService imageService, ILikeService likeService, IOptions <CloudinarySettings> cloudinaryConfig,
                              ICommentService commentService)
        {
            _postService       = postService;
            _stepService       = stepService;
            _imageService      = imageService;
            _likeService       = likeService;
            _starService       = starService;
            _commentService    = commentService;
            _ingredientService = ingredientService;
            _cloudinaryConfig  = cloudinaryConfig;
            Account account = new Account(_cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey,
                                          _cloudinaryConfig.Value.ApiSecret);

            _cloudinary = new Cloudinary(account);
        }
コード例 #13
0
        public ImportJSONCommand(IJSONParser jsonParser, IMovieService movieService, IStarService starService)
        {
            if (jsonParser == null)
            {
                throw new ArgumentNullException("JSON parser cannnot be null.");
            }

            if (movieService == null)
            {
                throw new ArgumentNullException("Movie service cannnot be null.");
            }

            if (starService == null)
            {
                throw new ArgumentNullException("Star service cannnot be null.");
            }

            this.jsonParser   = jsonParser;
            this.movieService = movieService;
            this.starService  = starService;
        }
コード例 #14
0
ファイル: StarsController.cs プロジェクト: plyschik/AMS
 public StarsController(IFlashMessage flashMessage, IStarService starService)
 {
     _flashMessage = flashMessage;
     _starService  = starService;
 }
コード例 #15
0
 public StarController(IStarService star)
 {
     this.starService = star;
 }
コード例 #16
0
 public ConstellationsController(IConstellationService constellationService, IStarService starService)
 {
     _starService          = starService;
     _constellationService = constellationService;
 }
コード例 #17
0
 public StarsController(IStarService starService)
 {
     _starService = starService;
 }
コード例 #18
0
 public StarsController(IStarService starService, IDiscoveryService discoveryService)
 {
     this.starService      = starService;
     this.discoveryService = discoveryService;
 }
コード例 #19
0
 public StarsController(IStarService starService, IJwtService jwtService)
 {
     this._starService = starService;
     this._jwtService  = jwtService;
 }