Exemplo n.º 1
0
 protected void Update(NativeWindow window, IStatsService statsService, IGameUpdateService gameService, IKeyboardService keyboard, IWorldController world, HUDController hud, EntityController entities, ScreensController screens)
 {
     world.Update(gameService);
     hud.Update(gameService);
     entities.Update(gameService);
     screens.Update(gameService);
 }
Exemplo n.º 2
0
 public DirectoryController(
     IStatsService statsService,
     IMapper mapper)
 {
     _statsService = statsService;
     _mapper       = mapper;
 }
Exemplo n.º 3
0
 public StatsController(
     IStatsService statsService,
     IMapper mapper)
 {
     _statsService = statsService;
     _mapper       = mapper;
 }
Exemplo n.º 4
0
 public InfoCommands(DiscordSocketClient client, IStatsService stats, IUnitOfWork uow, ForumService fs)
 {
     _client  = client;
     _stats   = stats;
     this.uow = uow;
     _fs      = fs;
 }
 public Utility(NadekoBot nadeko, DiscordSocketClient client, IStatsService stats, IBotCredentials creds)
 {
     _client     = client;
     _stats      = stats;
     _creds      = creds;
     _shardCoord = nadeko.ShardCoord;
 }
Exemplo n.º 6
0
 public InfoCommands(DiscordSocketClient client, IStatsService stats, DbService db, ForumService fs)
 {
     _client = client;
     _stats  = stats;
     _db     = db;
     _fs     = fs;
 }
Exemplo n.º 7
0
 public LeaderboardService(IPubstarsDb context, IStatsService stats, IMemoryCache cache, IConfiguration config)
 {
     _db           = context;
     _statsService = stats;
     _cache        = cache;
     MIN_GAMES     = config.GetValue <int>("mingames");
 }
Exemplo n.º 8
0
 public DoctorsController(ILogger <UsersController> logger, IDoctorService doctorService, IStatsService statsService, UserManager <AppUser> userManager)
 {
     _logger        = logger;
     _doctorService = doctorService;
     _statsService  = statsService;
     _userManager   = userManager;
 }
Exemplo n.º 9
0
 private static void ValidateConstructor(IDataLoader dataLoader, IStatsService statsService)
 {
     if (dataLoader == null || statsService == null)
     {
         throw new ArgumentException("Both dataloader and statsservice must be supplied.");
     }
 }
Exemplo n.º 10
0
        private async Task <ServiceStatus> GetStatsServiceStatus(IStatsService service, bool deep)
        {
            var status = new ServiceStatus(Health.Healthy, service.Name);

            try
            {
                if (deep)
                {
                    await service.GetAsync(Platform.Pc, Region.Na, "woodman-11497");

                    service.Enable();
                }
                else if (service.Disabled)
                {
                    status.Health = Health.Unavailable;
                }
            }
            catch (Exception ex)
            {
                _logger.LogWarning(ex, $"{service.Name} is unavailable.");

                service.Disable();

                status.Health = Health.Unavailable;
            }

            return(status);
        }
 public UserService(DatabaseContext context, IVisitedSightsService visitedSightsService, IStatsService statsService, IGameStatsService gameStats)
 {
     _context = context;
     _visitedSightsService = visitedSightsService;
     _statsService         = statsService;
     _gameStatsService     = gameStats;
 }
Exemplo n.º 12
0
 public FunCommands(IProfileService profileService, IExperienceService experienceService, IGotService gotService, IStatsService statsService)
 {
     _profileService    = profileService;
     _experienceService = experienceService;
     _gotService        = gotService;
     _statsService      = statsService;
 }
Exemplo n.º 13
0
 public Utility(MitternachtBot mitternacht, DiscordSocketClient client, IStatsService stats, IBotCredentials creds)
 {
     _client     = client;
     _stats      = stats;
     _creds      = creds;
     _shardCoord = mitternacht.ShardCoord;
 }
Exemplo n.º 14
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="configuration"></param>
        /// <param name="service"></param>
        public PlayerController(IConfiguration configuration, IStatsService service)
        {
            this.configuration = configuration;
            this.service       = service;

            this.maxPageSize = int.Parse(this.configuration["MaxPageSize"]);
        }
Exemplo n.º 15
0
 public StatsController(
     IStatsService statsService,
     StatsContext context)
 {
     _statsService = statsService;
     _context      = context;
 }
 public ScootersController(IDefectService defectService, IRentalService rentalService,
                           IStatsService statsService)
 {
     _defectService = defectService;
     _rentalService = rentalService;
     _statsService  = statsService;
 }
Exemplo n.º 17
0
        public CharacterServiceTests()
        {
            var services = new ServiceCollection();

            services.AddDbContext <ApplicationDbContext>(options =>
                                                         options.UseInMemoryDatabase(Guid.NewGuid().ToString()).UseLazyLoadingProxies());

            services.AddScoped <ICharacterService, CharacterService>();
            services.AddScoped <IInventoryItemService, InventoryItemService>();
            services.AddScoped <IInventoryService, InventoryService>();
            services.AddScoped <IItemService, ItemService>();
            services.AddScoped <ILocationService, LocationService>();
            services.AddScoped <IQuestService, QuestService>();
            services.AddScoped <IEnemyService, EnemyService>();
            services.AddScoped <IStatsService, StatsService>();

            this.provider = services.BuildServiceProvider();

            this.context = provider.GetService <ApplicationDbContext>();

            this.characterService     = provider.GetService <ICharacterService>();
            this.inventoryItemService = provider.GetService <IInventoryItemService>();
            this.inventoryService     = provider.GetService <IInventoryService>();
            this.itemService          = provider.GetService <IItemService>();
            this.locationService      = provider.GetService <ILocationService>();
            this.questService         = provider.GetService <IQuestService>();
            this.enemyService         = provider.GetService <IEnemyService>();
            this.statsService         = provider.GetService <IStatsService>();
        }
Exemplo n.º 18
0
        public AssignmentService(IDataLoader dataLoader, IStatsService statsService)
        {
            ValidateConstructor(dataLoader, statsService);

            _dataLoader  = dataLoader;
            _statsServic = statsService;
        }
Exemplo n.º 19
0
 public BranchController
 (
     IStatsService statService,
     IUserService userService,
     ICustomerService customerService,
     IOrderService orderService,
     IDocumentService documentService,
     IMenuTypeService menuTypeService,
     IMenuService menuService,
     ITableService tableService,
     IFirmService firmService,
     UserManager <ApplicationUser> userManager,
     ILogger <BranchController> logger
 )
 {
     _firmService     = firmService;
     _userManager     = userManager;
     _tableService    = tableService;
     _menuService     = menuService;
     _menuTypeService = menuTypeService;
     _documentService = documentService;
     _orderService    = orderService;
     _customerService = customerService;
     _userService     = userService;
     _logger          = logger;
     _statService     = statService;
 }
Exemplo n.º 20
0
        public StatsServiceTests()
        {
            m_kernel = new StandardKernel();
            m_kernel.Load(Assembly.GetExecutingAssembly());

            m_stats = m_kernel.Get<IStatsService>();
            m_stats.ApiKey = Settings1.Default.ApiKey;
        }
Exemplo n.º 21
0
        public SettingsStatsDataBase(IStatsService statsService, string title, NetworkType networkType, DataType type)
        {
            _statsService = statsService;
            _networkType  = networkType;

            Title = title;
            Type  = type;
        }
        private readonly IStatsService statsService; // Bit wierd. Passing in repositories and services. Which one should it be

        #endregion Fields

        #region Constructors

        public CompetitionService(ICompetitionRepository competitionRepository, 
            IOptionRepository optionRepository,
            IStatsService statsService)
        {
            this.competitionRepository = competitionRepository;
            this.optionRepository = optionRepository;
            this.statsService = statsService;
        }
Exemplo n.º 23
0
        private readonly IStatsService statsService; // Bit wierd. Passing in repositories and services. Which one should it be

        public CompetitionService(ICompetitionRepository competitionRepository,
                                  IOptionRepository optionRepository,
                                  IStatsService statsService)
        {
            this.competitionRepository = competitionRepository;
            this.optionRepository      = optionRepository;
            this.statsService          = statsService;
        }
Exemplo n.º 24
0
 public StatisticsApiController(IStatsService statsService,
     IReportsRepository reportsRepository,
     IUnitsRepository unitsRepository)
 {
     StatsService = statsService;
     ReportsRepository = reportsRepository;
     UnitsRepository = unitsRepository;
 }
Exemplo n.º 25
0
 public PostsModel(IBlogPostService blogPostService,
                   IStatsService statsService,
                   ISettingService settingService)
 {
     this.blogPostService = blogPostService;
     this.statsService    = statsService;
     this.settingService  = settingService;
 }
Exemplo n.º 26
0
 public AccountService(SignInManager <Player> signInManager, RoleManager <IdentityRole> roleManager, ICharacterService characterService, IStatsService statsService, IInventoryService inventoryService)
 {
     this.signInManager    = signInManager;
     this.roleManager      = roleManager;
     this.characterService = characterService;
     this.statsService     = statsService;
     this.inventoryService = inventoryService;
 }
 public TelegramInputParser(IOccasionService occasionService,
                            IPollService pollService,
                            IStatsService statsService)
 {
     _occasionService = occasionService;
     _pollService     = pollService;
     _statsService    = statsService;
 }
 public GetPayedBillsSumQuery(IStatsService statService)
 {
     if (statService == null)
     {
         throw new ArgumentNullException(nameof(statService));
     }
     _statService = statService;
 }
Exemplo n.º 29
0
 public DormController(IStatsService statsService, IAccountService accountService, IItemService itemService, ICharacterService characterService, IMapper mapper)
 {
     this.statsService     = statsService;
     this.accountService   = accountService;
     this.itemService      = itemService;
     this.characterService = characterService;
     this.mapper           = mapper;
 }
Exemplo n.º 30
0
 public Utility(NadekoBot nadeko, DiscordSocketClient client,
                IStatsService stats, IBotCredentials creds, DownloadTracker tracker)
 {
     _client  = client;
     _stats   = stats;
     _creds   = creds;
     _bot     = nadeko;
     _tracker = tracker;
 }
Exemplo n.º 31
0
 public StatsController(IUsuarioService usuarioService, IStatsService statsService)
 {
     _usuarioService = usuarioService;
     _statService = statsService;
     iface = new InterfaceModel();
     ostats = new OperatorStatsModel();
     recordsMovistar = new Dictionary<int, List<sp_get_movistar_anual_Result>>();
     recordsClaro = new Dictionary<int, List<sp_get_claro_anual_Result>>();
     recordsComcel = new Dictionary<int, List<sp_get_comcel_anual_Result>>();
 }
Exemplo n.º 32
0
 public StatsCacheService(
     IMemoryCache memoryCache,
     ILogger <StatsCacheService> logger,
     IStatsService statsService)
 {
     _memoryCache  = memoryCache;
     _logger       = logger;
     _statsService = statsService;
     _typeName     = GetType().Name;
 }
Exemplo n.º 33
0
 public Utility(EvilMortyBot evilMorty, DiscordSocketClient client,
                IStatsService stats, IBotCredentials creds,
                DbService db)
 {
     _client = client;
     _stats  = stats;
     _creds  = creds;
     _bot    = evilMorty;
     _db     = db;
 }
Exemplo n.º 34
0
 public Utility(NadekoBot nadeko, DiscordSocketClient client,
                IStatsService stats, IBotCredentials creds,
                DbService db)
 {
     _client = client;
     _stats  = stats;
     _creds  = creds;
     _bot    = nadeko;
     _db     = db;
 }
Exemplo n.º 35
0
 public BotServices(ILoggingService loggingService,
     IEventService eventService,
     ITickerService tickerService,
     IDefenceService defenceService, 
     INewsService newsService,
     IKarmaService karmaService,
     IReplyService replyService,
     IStatsService statsService,
     IServerService serverService,
     IUrlService urlService,
     IJobService jobs)
 {
     Logging = loggingService;
     Events = eventService;
     Ticker = tickerService;
     Defence = defenceService;
     News = newsService;
     Karma = karmaService;
     AI = replyService;
     Stats = statsService;
     Server = serverService;
     Tools = urlService;
     Jobs = jobs;
 }
Exemplo n.º 36
0
 protected BaseApiController( IModelFactory modelFactory, IStatsService statsService ) {
     _modelFactory = modelFactory;
     _service = statsService;
 }
Exemplo n.º 37
0
 public PlayerController( ) {
     _service = new StatsService( );
     _modelFactory = new ModelFactory( );
 }
Exemplo n.º 38
0
 public GameService(IGameRepository gameRepository, IStatsService statsService)
 {
     this.gameRepository = gameRepository;
     this.statsService = statsService;
 }
Exemplo n.º 39
0
 public GameController(IGameService gameService, IUserService userService, IStatsService statsService)
 {
     _gameService = gameService;
     _userService = userService;
     _statsService = statsService;
 }
Exemplo n.º 40
0
 public StatsController(IStatsService statsService)
 {
     _statsService = statsService;
 }
Exemplo n.º 41
0
 public SummonerCrawler(ISummonerService summonerService, IStatsService statsService)
 {
     _summonerService = summonerService;
     _statsService = statsService;
 }