示例#1
0
 public DatasetClusteringService(
     TextClusteringDbContext dbContext,
     IAlgorithmService algorithmService)
 {
     _dbContext        = dbContext;
     _algorithmService = algorithmService;
 }
示例#2
0
        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;
 }
示例#4
0
 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;
 }
示例#6
0
 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;
 }
示例#7
0
        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);
        }
示例#8
0
 public Calculator(IAlgorithmService algorithmService)
 {
     _algorithmService = algorithmService;
 }
示例#9
0
 public LiveAlgorithmPageViewModel(IAlgorithmService algorithmService)
 {
     _algorithmService = algorithmService;
 }
示例#10
0
 /// <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;
 }
示例#11
0
 public Locomotion_Untransform_Handler(IAlgorithmService algorithm)
 {
     _algorithm = algorithm;
 }
示例#12
0
 public ChartService(IAlgorithmService algorithmService)
 {
     _algorithmService = algorithmService;
 }
 public Specialist_Remove_Handler(IAlgorithmService algorithm)
 {
     _algorithm = algorithm;
 }
示例#14
0
 public Player_LevelUp_Handler(IAlgorithmService algorithm)
 {
     _algorithm = algorithm;
 }