示例#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);
 }
示例#2
0
 public DirectoryController(
     IStatsService statsService,
     IMapper mapper)
 {
     _statsService = statsService;
     _mapper       = mapper;
 }
示例#3
0
 public StatsController(
     IStatsService statsService,
     IMapper mapper)
 {
     _statsService = statsService;
     _mapper       = mapper;
 }
 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;
 }
 public InfoCommands(DiscordSocketClient client, IStatsService stats, DbService db, ForumService fs)
 {
     _client = client;
     _stats  = stats;
     _db     = db;
     _fs     = fs;
 }
示例#7
0
 public LeaderboardService(IPubstarsDb context, IStatsService stats, IMemoryCache cache, IConfiguration config)
 {
     _db           = context;
     _statsService = stats;
     _cache        = cache;
     MIN_GAMES     = config.GetValue <int>("mingames");
 }
示例#8
0
 public DoctorsController(ILogger <UsersController> logger, IDoctorService doctorService, IStatsService statsService, UserManager <AppUser> userManager)
 {
     _logger        = logger;
     _doctorService = doctorService;
     _statsService  = statsService;
     _userManager   = userManager;
 }
 private static void ValidateConstructor(IDataLoader dataLoader, IStatsService statsService)
 {
     if (dataLoader == null || statsService == null)
     {
         throw new ArgumentException("Both dataloader and statsservice must be supplied.");
     }
 }
示例#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;
 }
示例#12
0
 public FunCommands(IProfileService profileService, IExperienceService experienceService, IGotService gotService, IStatsService statsService)
 {
     _profileService    = profileService;
     _experienceService = experienceService;
     _gotService        = gotService;
     _statsService      = statsService;
 }
示例#13
0
 public Utility(MitternachtBot mitternacht, DiscordSocketClient client, IStatsService stats, IBotCredentials creds)
 {
     _client     = client;
     _stats      = stats;
     _creds      = creds;
     _shardCoord = mitternacht.ShardCoord;
 }
示例#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"]);
        }
示例#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;
 }
示例#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>();
        }
示例#18
0
        public AssignmentService(IDataLoader dataLoader, IStatsService statsService)
        {
            ValidateConstructor(dataLoader, statsService);

            _dataLoader  = dataLoader;
            _statsServic = statsService;
        }
示例#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;
 }
示例#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;
        }
示例#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;
        }
示例#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;
        }
示例#24
0
 public StatisticsApiController(IStatsService statsService,
     IReportsRepository reportsRepository,
     IUnitsRepository unitsRepository)
 {
     StatsService = statsService;
     ReportsRepository = reportsRepository;
     UnitsRepository = unitsRepository;
 }
示例#25
0
 public PostsModel(IBlogPostService blogPostService,
                   IStatsService statsService,
                   ISettingService settingService)
 {
     this.blogPostService = blogPostService;
     this.statsService    = statsService;
     this.settingService  = settingService;
 }
示例#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;
 }
示例#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;
 }
示例#30
0
 public Utility(NadekoBot nadeko, DiscordSocketClient client,
                IStatsService stats, IBotCredentials creds, DownloadTracker tracker)
 {
     _client  = client;
     _stats   = stats;
     _creds   = creds;
     _bot     = nadeko;
     _tracker = tracker;
 }
示例#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>>();
 }
示例#32
0
 public StatsCacheService(
     IMemoryCache memoryCache,
     ILogger <StatsCacheService> logger,
     IStatsService statsService)
 {
     _memoryCache  = memoryCache;
     _logger       = logger;
     _statsService = statsService;
     _typeName     = GetType().Name;
 }
示例#33
0
 public Utility(EvilMortyBot evilMorty, DiscordSocketClient client,
                IStatsService stats, IBotCredentials creds,
                DbService db)
 {
     _client = client;
     _stats  = stats;
     _creds  = creds;
     _bot    = evilMorty;
     _db     = db;
 }
示例#34
0
文件: Utility.cs 项目: tepup/LinBot
 public Utility(NadekoBot nadeko, DiscordSocketClient client,
                IStatsService stats, IBotCredentials creds,
                DbService db)
 {
     _client = client;
     _stats  = stats;
     _creds  = creds;
     _bot    = nadeko;
     _db     = db;
 }
示例#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;
 }
 protected BaseApiController( IModelFactory modelFactory, IStatsService statsService ) {
     _modelFactory = modelFactory;
     _service = statsService;
 }
 public PlayerController( ) {
     _service = new StatsService( );
     _modelFactory = new ModelFactory( );
 }
示例#38
0
 public GameService(IGameRepository gameRepository, IStatsService statsService)
 {
     this.gameRepository = gameRepository;
     this.statsService = statsService;
 }
示例#39
0
 public GameController(IGameService gameService, IUserService userService, IStatsService statsService)
 {
     _gameService = gameService;
     _userService = userService;
     _statsService = statsService;
 }
示例#40
0
 public StatsController(IStatsService statsService)
 {
     _statsService = statsService;
 }
示例#41
0
 public SummonerCrawler(ISummonerService summonerService, IStatsService statsService)
 {
     _summonerService = summonerService;
     _statsService = statsService;
 }