public DatasetClusteringService( TextClusteringDbContext dbContext, IAlgorithmService algorithmService) { _dbContext = dbContext; _algorithmService = algorithmService; }
public LiveAlgorithmsPageViewModel(IAlgorithmService algorithmService, INavigationService navigationService) { _algorithmService = algorithmService; _navigationService = navigationService; RefreshAlgorithmsCommand = new Command(RefreshAlgorithms); AlgorithmTappedCommand = new Command <AlgorithmViewModel>(async(algorithm) => await NavigateToAlgorithmAsync(algorithm.Id)); }
public GameStartPacketHandler(IPlayerManager playerManager, IMapManager mapManager, IAlgorithmService algorithmService, ICharacterService characterService, ICharacterSkillService characterSkillService, ICharacterQuickListService characterQuicklistService, ICharacterMateService characterMateService, INpcMonsterService npcMonsterService) { _playerManager = playerManager; _mapManager = mapManager; _algorithmService = algorithmService; _characterService = characterService; _characterSkillService = characterSkillService; _characterQuicklistService = characterQuicklistService; _characterMateService = characterMateService; _npcMonsterService = npcMonsterService; }
public CommonController() { // 如果直接使用ServiceLocator.Instance.GetService方法获取自定义服务是,使用Scoped方式注册服务的话这里获取失败。 // hca.HttpContext.RequestServices.GetService<IMyService>(); // IHttpContextAccessor hca = (IHttpContextAccessor)ServiceLocator.Instance.GetService(typeof(IHttpContextAccessor)); this.algorithmService = (IAlgorithmService)ServiceLocator.Instance.GetService(typeof(IAlgorithmService)); this.cacheService = (ICacheService)ServiceLocator.Instance.GetService(typeof(ICacheService)); this.dataSourceService = (IDataSourceService)ServiceLocator.Instance.GetService(typeof(IDataSourceService)); this.modelService = (IModelService)ServiceLocator.Instance.GetService(typeof(IModelService)); this.taskService = (ITaskService)ServiceLocator.Instance.GetService(typeof(ITaskService)); this.userService = (IUserService)ServiceLocator.Instance.GetService(typeof(IUserService)); this.versionService = (IVersionService)ServiceLocator.Instance.GetService(typeof(IVersionService)); }
public HomeController(IDataOldService dataOldService, ISynchronizationService synchronizationService, IMapper mapper, IDataService dataService, IAlgorithmService algorithmService, IChartService chartService) { _dataOldService = dataOldService; _synchronizationService = synchronizationService; _mapper = mapper; _dataService = dataService; _algorithmService = algorithmService; _chartService = chartService; }
public MatchHub(IMatchResourcesService matchResourcesService, IPlayerResourcesService playerResourcesService, IAlgorithmService algorithmService, IMatchesManagerService matchesManagerService, IMapper mapper, IHostingEnvironment env) { this._matchResourcesService = matchResourcesService; this._playerResourcesService = playerResourcesService; this._algorithmService = algorithmService; this._matchesManagerService = matchesManagerService; this._mapper = mapper; this._env = env; }
public Coin ToCoin(string name) { Coin coin = new Coin() { Name = name }; coin.Tag = this.tag; IAlgorithmService algorithmService = ServiceLocator.Get <IAlgorithmService>(); var algorithmInDb = algorithmService.AddOrUpdate(new Algorithm() { Name = new LocalizableTextRequired(algorithm, algorithm) }); coin.WhatToMineId = id; //coin.Algorithm = this.algorithm; coin.AlgorithmId = algorithmInDb.Id; coin.BlockTime = this.block_time; coin.BlockReward = this.block_reward; coin.BlockReward24 = this.block_reward24; coin.LastBlock = this.last_block; coin.Difficulty = this.difficulty; coin.Difficulty24 = this.difficulty24; coin.Nethash = this.nethash; coin.ExchangeRate = this.exchange_rate; coin.ExchangeRate24 = this.exchange_rate24; coin.ExchangeRateVol = this.exchange_rate_vol; coin.ExchangeRateCurr = this.exchange_rate_curr; coin.MarketCap = this.market_cap; coin.EstimatedRewards = this.estimated_rewards; coin.EstimatedRewards24 = this.estimated_rewards24; coin.BtcRevenue = this.btc_revenue; coin.BtcRevenue24 = this.btc_revenue24; coin.Profitability = this.profitability; coin.Profitability24 = this.profitability24; coin.Lagging = this.lagging; return(coin); }
public Calculator(IAlgorithmService algorithmService) { _algorithmService = algorithmService; }
public LiveAlgorithmPageViewModel(IAlgorithmService algorithmService) { _algorithmService = algorithmService; }
/// <summary> /// Initializes a new instance of the <see cref="AlgorithmController"/> class. /// Algorithm controller class /// </summary> /// <param name="algorithmService"> /// The algorithm service. /// </param> public AlgorithmController(IAlgorithmService algorithmService) { this.algorithmService = algorithmService; }
public Locomotion_Untransform_Handler(IAlgorithmService algorithm) { _algorithm = algorithm; }
public ChartService(IAlgorithmService algorithmService) { _algorithmService = algorithmService; }
public Specialist_Remove_Handler(IAlgorithmService algorithm) { _algorithm = algorithm; }
public Player_LevelUp_Handler(IAlgorithmService algorithm) { _algorithm = algorithm; }