예제 #1
0
 public ParameterResolver(IClipboardService clipboardService, IDataSourceService dataService)
 {
     _dataService = dataService;
     _handler     = new TextHandler()
                    .SetNext(new UriHandler())
                    .SetNext(new ClipboardHandler(clipboardService));
 }
 public FileClipboardDataControlFactory(
     IDataSourceService dataSourceService, 
     IFileIconService fileIconService)
 {
     this.dataSourceService = dataSourceService;
     this.fileIconService = fileIconService;
 }
 public TextClipboardDataControlFactory(
     IDataSourceService dataSourceService,
     IClipboardControlFactory <IClipboardTextData, IClipboardTextDataControl> textControlFactory)
 {
     this.dataSourceService  = dataSourceService;
     this.textControlFactory = textControlFactory;
 }
 public BitmapClipboardDataControlFactory(
     IDataSourceService dataSourceService,
     IEnvironmentInformation environmentInformation)
 {
     this.dataSourceService      = dataSourceService;
     this.environmentInformation = environmentInformation;
 }
 public TextClipboardDataControlFactory(
     IDataSourceService dataSourceService,
     IClipboardControlFactory<IClipboardTextData, IClipboardTextDataControl> textControlFactory)
 {
     this.dataSourceService = dataSourceService;
     this.textControlFactory = textControlFactory;
 }
 public BitmapClipboardDataControlFactory(
     IDataSourceService dataSourceService,
     IEnvironmentInformation environmentInformation)
 {
     this.dataSourceService = dataSourceService;
     this.environmentInformation = environmentInformation;
 }
예제 #7
0
 public EditDoubloonsViewModel(IUserNotifyer notifyer,
                               IDataSourceService dataService,
                               ISettingsService settingService)
 {
     _settingService = settingService;
     _notifyer       = notifyer;
     _dataService    = dataService;
 }
 public EditObsoleteKeywordsViewModel(IDataSourceService dataService,
                                      ISettingsService settingService,
                                      IUserNotifyer notifyer)
 {
     _notifyer       = notifyer;
     _settingService = settingService;
     _dataService    = dataService;
 }
예제 #9
0
 public MultipleChoiceExerciseService(IMultipleChoiceExerciseRepository repository,
                                      IMultipleChoiceQuestionRepository questionRepository,
                                      IDataSourceService dataSourceService)
 {
     _repository         = repository;
     _questionRepository = questionRepository;
     _dataSourceService  = dataSourceService;
 }
예제 #10
0
 public DataSourceController(
     IDataSourceService dataSourceService,
     ITriggerScriptService triggerScriptService
     )
 {
     _dataSourceService    = dataSourceService;
     _triggerScriptService = triggerScriptService;
 }
예제 #11
0
 public adminbasedataController(IProvinceService provinceService, ICityService cityService, IDataSourceService dataSourceService, ISchoolService schoolService, ILeavingMsgService leavingMsgService, ICountryService countryService)
 {
     _provinceService   = provinceService;
     _cityService       = cityService;
     _dataSourceService = dataSourceService;
     _schoolService     = schoolService;
     _leavingMsgService = leavingMsgService;
     _countryService    = countryService;
 }
예제 #12
0
 public ExerciseService(
     IQuestionService QuestionService,
     IExerciseRepository ExerciseRepository,
     IDataSourceService DataSourceService)
 {
     _questionService    = QuestionService;
     _exerciseRepository = ExerciseRepository;
     _dataSourceService  = DataSourceService;
 }
 public UnSubscribeDatasourceCommandHandler(
     IFeedCommandRepository feedCommandRepository,
     IDataSourceService dataSourceService,
     ILogger <SubscribeDatasourceCommandHandler> logger)
 {
     _feedCommandRepository = feedCommandRepository;
     _dataSourceService     = dataSourceService;
     _logger = logger;
 }
예제 #14
0
 public SettingsViewModel(ISettingsService settingsService,
                          IDataSourceService databaseService,
                          IUserNotifyer userNotifyer,
                          IAppRestarter restarter)
 {
     _restarter       = restarter;
     _userNotifyer    = userNotifyer;
     _databaseService = databaseService;
     _settingsService = settingsService;
 }
예제 #15
0
 public TriggerScriptService(
     MultiTenantPlatformDbContext multiTenantPlatformDbContext,
     IScriptEngineProvider scriptEngineProvider,
     IDataSourceService dataSourceService
     ) : base(multiTenantPlatformDbContext)
 {
     _dbContext            = multiTenantPlatformDbContext;
     _scriptEngineProvider = scriptEngineProvider;
     _dataSourceService    = dataSourceService;
 }
예제 #16
0
 public PlayedGamesService(IPlayedGamesRepository gamesRepository,
                           IFootballTeamsRepository teamsRepository,
                           IDataSourceService dataSourceService,
                           IDateTimeProvider dateTimeProvider)
 {
     this.gamesRepository   = gamesRepository;
     this.teamsRepository   = teamsRepository;
     this.dataSourceService = dataSourceService;
     this.dateTimeProvider  = dateTimeProvider;
 }
예제 #17
0
 public playerController(IMailService mailService, IMemberService memberService, IDataSourceService dataSourceService, IEventScoreService eventScoreService, IMemberTempService memberTempService, IMemberPointsService memberPointsService, IPlayerSignUpService playerSignUpService, IPlayerEduService playerEduService, IPlayerCoachService playerCoachService)
 {
     _mailService         = mailService;
     _memberService       = memberService;
     _dataSourceService   = dataSourceService;
     _eventScoreService   = eventScoreService;
     _memberPointsService = memberPointsService;
     _playerSignUpService = playerSignUpService;
     _playerEduService    = playerEduService;
     _playerCoachService  = playerCoachService;
 }
예제 #18
0
 public FileClipboardDataFactory(
     IDataSourceService dataSourceService,
     IFileIconService fileIconService,
     IMemoryHandleFactory memoryHandleFactory,
     IClipboardNativeApi clipboardNativeApi)
 {
     this.dataSourceService   = dataSourceService;
     this.fileIconService     = fileIconService;
     this.memoryHandleFactory = memoryHandleFactory;
     this.clipboardNativeApi  = clipboardNativeApi;
 }
예제 #19
0
 public EditSourceController(
     DataContext context,
     ISourceDataContext sourceDataContext,
     FileDataSourceService fileService,
     IDataSourceService dataService)
 {
     this.context           = context;
     this.sourceDataContext = sourceDataContext;
     this.fileService       = fileService;
     this.dataService       = dataService;
 }
 public FileClipboardDataFactory(
     IDataSourceService dataSourceService,
     IFileIconService fileIconService,
     IMemoryHandleFactory memoryHandleFactory,
     IClipboardNativeApi clipboardNativeApi)
 {
     this.dataSourceService = dataSourceService;
     this.fileIconService = fileIconService;
     this.memoryHandleFactory = memoryHandleFactory;
     this.clipboardNativeApi = clipboardNativeApi;
 }
 public AddFeedCommandHandler(
     IFeedCommandRepository feedCommandRepository,
     IDataSourceService dataSourceService,
     IBusControl busControl,
     ILogger <AddFeedCommandHandler> logger)
 {
     _feedCommandRepository = feedCommandRepository;
     _dataSourceService     = dataSourceService;
     _busControl            = busControl;
     _logger = logger;
 }
예제 #22
0
        public ApartmentManager()
        {
            _dataSourceService  = new ExcelDataSourceService();
            _apartmentRepo      = new ApartmentRepository();
            _apartmentAssetRepo = new ApartmentAssetRepository();
            _accountRepo        = new AccountRepository();
            _buildingRepo       = new BuildingRepository();

            _buildingFolderRepo  = new BuildingFolderRepository();
            _apartmentFolderRepo = new ApartmentFolderRepository();
            _svgRepository       = new SVGDataRepository();
        }
 public FileClipboardDataControlFactory(
     IDataSourceService dataSourceService,
     IFileIconService fileIconService,
     IMemoryHandleFactory memoryHandleFactory,
     IClipboardControlFactory<IClipboardFileData, IClipboardFileDataControl> clipboardFileControlFactory,
     IClipboardControlFactory<IClipboardFileCollectionData, IClipboardFileCollectionDataControl> clipboardFileCollectionControlFactory)
 {
     this.dataSourceService = dataSourceService;
     this.fileIconService = fileIconService;
     this.memoryHandleFactory = memoryHandleFactory;
     this.clipboardFileControlFactory = clipboardFileControlFactory;
     this.clipboardFileCollectionControlFactory = clipboardFileCollectionControlFactory;
 }
예제 #24
0
 public FileClipboardDataControlFactory(
     IDataSourceService dataSourceService,
     IFileIconService fileIconService,
     IMemoryHandleFactory memoryHandleFactory,
     IClipboardControlFactory <IClipboardFileData, IClipboardFileDataControl> clipboardFileControlFactory,
     IClipboardControlFactory <IClipboardFileCollectionData, IClipboardFileCollectionDataControl> clipboardFileCollectionControlFactory)
 {
     this.dataSourceService                     = dataSourceService;
     this.fileIconService                       = fileIconService;
     this.memoryHandleFactory                   = memoryHandleFactory;
     this.clipboardFileControlFactory           = clipboardFileControlFactory;
     this.clipboardFileCollectionControlFactory = clipboardFileCollectionControlFactory;
 }
        public DataSourceServiceTest()
        {
            var settings = new DataSourceSettings
            {
                DataType     = DataType.Temperature.ToString(),
                SensorSerial = "123456789",
                GenerationTimeIntervalSeconds = "5",
                AuthToken   = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1bmlxdWVfbmFtZSI6ImE3NWI2OWI4LTk2OWYtNDY5ZS1iMjZkLTA4ZDgxMzg5NGQyNyIsInJvbGUiOiJBZG1pbiIsIm5iZiI6MTU5MjU3MDMwMCwiZXhwIjoxNTkzMTc1MTAwLCJpYXQiOjE1OTI1NzAzMDB9.OBHTe43zxDN5o7pnwNEauyZ73m_juw7z46XW8C8nNvU",
                HostAddress = "http://localhost:3000/records",
            };

            TestGenerator = new DataSourceService(settings);
        }
예제 #26
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 InterfaceAggregationService(
     MultiTenantPlatformDbContext multiTenantPlatformDbContext,
     IFieldListService fieldListService,
     ISearchConditionService _searchConditionService,
     IFormService formService,
     IDataSourceService dataSourceService
     ) : base(multiTenantPlatformDbContext)
 {
     dbContext = multiTenantPlatformDbContext;
     this._fieldListService      = fieldListService;
     this.searchConditionService = _searchConditionService;
     _formService       = formService;
     _dataSourceService = dataSourceService;
 }
예제 #28
0
 public ListAliasViewModel(IDataSourceService databaseService,
                           EditAliasViewModel editaliasViewModel,
                           ILogService log,
                           ISettingsService settingService,
                           IUserNotifyer notifyer)
 {
     _notifyer                    = notifyer;
     _settingService              = settingService;
     _appSettings                 = settingService.Get();
     _log                         = log;
     _databaseService             = databaseService;
     EditAliasViewModel           = editaliasViewModel;
     EditAliasViewModel.OnRefresh = () => RefreshData();
 }
예제 #29
0
 public DataSourceHandler(IProfilingLogger logger,
                          SyncFormService syncFormService,
                          IDataSourceStorage dataSourceStorage,
                          IDataSourceService dataSourceService,
                          AppCaches appCaches,
                          ISyncSerializer <FormDataSource> serializer,
                          ISyncItemFactory itemFactory,
                          SyncFileService syncFileService)
     : base(logger, appCaches, serializer, itemFactory, syncFileService)
 {
     this.syncFormService   = syncFormService;
     this.dataSourceService = dataSourceService;
     this.dataSourceStorage = dataSourceStorage;
 }
예제 #30
0
        public StatisticsViewModel(ILogService log, IDataSourceService service, IUserNotifyer notifyer)
        {
            _notifyer = notifyer;
            _log      = log;
            _service  = service;

            FormatterDay   = m => new DateTime((long)m).ToString("dd MMM yyyy");
            FormatterMonth = m => new DateTime((long)m).ToString("MMM yyyy");
            FormatterHour  = m => new DateTime((long)m).ToString("HH:00");

            FormatterCount = m => $"{m} hit(s)";

            XyDateTimeMapper = Mappers.Xy <ChartPoint <DateTime, int> >()
                               .X(p => p.X.Ticks)
                               .Y(p => p.Y);
        }
예제 #31
0
        public AliasService(IDataSourceService databaseService,
                            IParameterResolver argumentHandler,
                            ICommandRunner runner,
                            ILogService log,
                            IMacroRunner macroService,
                            IPluginManager pluginManager
                            )
        {
            _pluginManager = pluginManager;
            _macroRunner   = macroService;
            _cmdRunner     = runner;

            _log             = log;
            _databaseService = databaseService;
            _resolver        = argumentHandler;
        }
예제 #32
0
 public InterfaceAggregationController(
     IInterfaceAggregationService _interfaceAggregationService,
     IFieldListService _interfaceFieldService,
     ISearchConditionService _searchConditionService,
     ISearchConditionNodeService searchConditionNodeService,
     IDataSourceService dataSourceService,
     IFormService formService
     )
 {
     this.interfaceAggregationService = _interfaceAggregationService;
     this.interfaceFieldService       = _interfaceFieldService;
     this.searchConditionService      = _searchConditionService;
     _searchConditionNodeService      = searchConditionNodeService;
     _formService       = formService;
     _dataSourceService = dataSourceService;
 }
예제 #33
0
 public ClipboardDataPackageFactory(
     IEnumerable <IClipboardDataFactory> allDataFactories,
     IEnumerable <IMemoryUnwrapper> allMemoryUnwrappers,
     ICustomClipboardDataFactory customClipboardDataFactory,
     IGeneralUnwrapper generalUnwrapper,
     ILogger logger,
     IClipboardHandleFactory clipboardSessionFactory,
     IDataSourceService dataSourceService)
 {
     this.allDataFactories           = allDataFactories;
     this.allMemoryUnwrappers        = allMemoryUnwrappers;
     this.customClipboardDataFactory = customClipboardDataFactory;
     this.generalUnwrapper           = generalUnwrapper;
     this.logger = logger;
     this.clipboardSessionFactory = clipboardSessionFactory;
     this.dataSourceService       = dataSourceService;
 }
예제 #34
0
        public SyncFormService(
            IPrevalueSourceService prevalueSourceService,
            IPrevalueSourceStorage prevalueSourceStorage,
            IDataSourceService dataSourceService,
            IDataSourceStorage dataSourceStorage,
            IFormService formService,
            IFormStorage formStorage,
            IWorkflowServices workflowServices,
            IWorkflowStorage workflowStorage)
        {
            this.prevalueSourceStorage = prevalueSourceStorage;
            this.prevalueSourceService = prevalueSourceService;

            this.dataSourceService = dataSourceService;
            this.dataSourceStorage = dataSourceStorage;

            this.formService = formService;
            this.formStorage = formStorage;

            this.workflowServices = workflowServices;
            this.workflowStorage  = workflowStorage;
        }
예제 #35
0
 public CloudDataController(
     IDataAccessService _dataAccessService,
     ISearchConditionNodeService _conditionAggregationService,
     IInterfaceAggregationService _interfaceAggregationService,
     ITriggerScriptService triggerScriptService,
     IDataSourceService dataSourceService,
     IMetaObjectService _metaObjectService,
     IMetaFieldService _metaFieldService,
     IFormMetaFieldService formMetaFieldService,
     IFieldListMetaFieldService fieldListMetaFieldService
     )
 {
     dataAccessService           = _dataAccessService;
     conditionAggregationService = _conditionAggregationService;
     interfaceAggregationService = _interfaceAggregationService;
     _triggerScriptService       = triggerScriptService;
     metaObjectService           = _metaObjectService;
     metaFieldService            = _metaFieldService;
     _dataSourceService          = dataSourceService;
     _formMetaFieldService       = formMetaFieldService;
     _fieldListMetaFieldService  = fieldListMetaFieldService;
 }
 public ClipboardFileData(IDataSourceService sourceFactory)
 {
     Source = sourceFactory.GetDataSource();
 }
 public TextClipboardDataControlFactory(IDataSourceService dataSourceService)
 {
     this.dataSourceService = dataSourceService;
 }
예제 #38
0
 public DataSourceController(IDataSourceService dataService)
 {
     this.dataService = dataService;
 }
예제 #39
0
 public DataSourceController(IDataSourceService service)
 {
     this._dataSourceService = service;
 }
 public BitmapClipboardDataFactory(
     IDataSourceService dataSourceService)
 {
     this.dataSourceService = dataSourceService;
 }
예제 #41
0
 public ClipboardTextData(IDataSourceService sourceFactory)
 {
     this.source = sourceFactory.GetDataSource();
 }
 public ClipboardFileCollectionData(IDataSourceService sourceFactory)
 {
     source = sourceFactory.GetDataSource();
 }
예제 #43
0
 public ClipboardImageData(IDataSourceService sourceFactory)
 {
     source = sourceFactory.GetDataSource();
 }