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); }
public DirectoryController( IStatsService statsService, IMapper mapper) { _statsService = statsService; _mapper = mapper; }
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; }
public LeaderboardService(IPubstarsDb context, IStatsService stats, IMemoryCache cache, IConfiguration config) { _db = context; _statsService = stats; _cache = cache; MIN_GAMES = config.GetValue <int>("mingames"); }
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."); } }
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; }
public FunCommands(IProfileService profileService, IExperienceService experienceService, IGotService gotService, IStatsService statsService) { _profileService = profileService; _experienceService = experienceService; _gotService = gotService; _statsService = statsService; }
public Utility(MitternachtBot mitternacht, DiscordSocketClient client, IStatsService stats, IBotCredentials creds) { _client = client; _stats = stats; _creds = creds; _shardCoord = mitternacht.ShardCoord; }
/// <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"]); }
public StatsController( IStatsService statsService, StatsContext context) { _statsService = statsService; _context = context; }
public ScootersController(IDefectService defectService, IRentalService rentalService, IStatsService statsService) { _defectService = defectService; _rentalService = rentalService; _statsService = statsService; }
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>(); }
public AssignmentService(IDataLoader dataLoader, IStatsService statsService) { ValidateConstructor(dataLoader, statsService); _dataLoader = dataLoader; _statsServic = statsService; }
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; }
public StatsServiceTests() { m_kernel = new StandardKernel(); m_kernel.Load(Assembly.GetExecutingAssembly()); m_stats = m_kernel.Get<IStatsService>(); m_stats.ApiKey = Settings1.Default.ApiKey; }
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; }
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; }
public StatisticsApiController(IStatsService statsService, IReportsRepository reportsRepository, IUnitsRepository unitsRepository) { StatsService = statsService; ReportsRepository = reportsRepository; UnitsRepository = unitsRepository; }
public PostsModel(IBlogPostService blogPostService, IStatsService statsService, ISettingService settingService) { this.blogPostService = blogPostService; this.statsService = statsService; this.settingService = settingService; }
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; }
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; }
public Utility(NadekoBot nadeko, DiscordSocketClient client, IStatsService stats, IBotCredentials creds, DownloadTracker tracker) { _client = client; _stats = stats; _creds = creds; _bot = nadeko; _tracker = tracker; }
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>>(); }
public StatsCacheService( IMemoryCache memoryCache, ILogger <StatsCacheService> logger, IStatsService statsService) { _memoryCache = memoryCache; _logger = logger; _statsService = statsService; _typeName = GetType().Name; }
public Utility(EvilMortyBot evilMorty, DiscordSocketClient client, IStatsService stats, IBotCredentials creds, DbService db) { _client = client; _stats = stats; _creds = creds; _bot = evilMorty; _db = db; }
public Utility(NadekoBot nadeko, DiscordSocketClient client, IStatsService stats, IBotCredentials creds, DbService db) { _client = client; _stats = stats; _creds = creds; _bot = nadeko; _db = db; }
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( ); }
public GameService(IGameRepository gameRepository, IStatsService statsService) { this.gameRepository = gameRepository; this.statsService = statsService; }
public GameController(IGameService gameService, IUserService userService, IStatsService statsService) { _gameService = gameService; _userService = userService; _statsService = statsService; }
public StatsController(IStatsService statsService) { _statsService = statsService; }
public SummonerCrawler(ISummonerService summonerService, IStatsService statsService) { _summonerService = summonerService; _statsService = statsService; }