Пример #1
0
        public EyeTrackerSettingsSectionViewModel(IEyeTrackerConfiguration configuration, IEnumerable <ITrackerFinder> finders, IModulesService modules)
        {
            _configuration = configuration;

            AddDrivers(finders);
            modules.Register <ITrackerFinder>(this, AddDrivers);
        }
Пример #2
0
        public TrackerBrowser(IEnumerable <ITrackerFinder> finders, IEyeTrackerConfiguration configuration, IModulesService modules)
        {
            _configuration = configuration;

            AddTrackerFinders(finders);
            modules.Register <ITrackerFinder>(this, AddTrackerFinders);
        }
Пример #3
0
        public ControlServicesIconsViewModel(IEnumerable <IControlService> services, IModulesService modules, ViewModelResolver resolver)
        {
            _resolver = resolver;

            AddServices(services);
            modules.Register <IControlService>(this, AddServices);
        }
Пример #4
0
        public AppService(IEnumerable <IConnector> connectors, IEnumerable <ILoader> loaders, IEnumerable <IControlService> controls, IModulesService modules)
        {
            state       = AppState.None;
            _connectors = connectors ?? Enumerable.Empty <IConnector>();
            _loaders    = loaders ?? Enumerable.Empty <ILoader>();

            _controls.TryAddRange(controls);
            modules.Register <IControlService>(this, AddControlServices);
        }
Пример #5
0
        public ServerControlService
        (
            ServerHost server,
            IServerConfiguration configuration,
            IEnumerable <JsonConverter> converters,
            IEnumerable <MediaTypeFormatter> formatters,
            IModulesService modules
        )
        {
            _server        = server;
            _configuration = configuration;

            AddConverters(converters);
            AddFormatters(formatters);

            modules.Register <JsonConverter>(this, AddConverters);
            modules.Register <MediaTypeFormatter>(this, AddFormatters);

            _server.CustomFileExtensionContentTypeProvider = new CustomContentTypeProvider();
        }
Пример #6
0
        public TimelinePreparation(IEnumerable <ITimelineStepPreparation> preparations, IModulesService modules)
        {
            AddPreparations(preparations);

            modules.Register <ITimelineStepPreparation>(this, AddPreparations);
        }
Пример #7
0
 public SettingsViewModel(IEnumerable <ISettingsSectionViewModel> sections, IModulesService modules)
 {
     AddSections(sections);
     modules.Register <ISettingsSectionViewModel>(this, AddSections);
 }
Пример #8
0
        public SessionRecorderFactoryLocator(IEnumerable<ISessionRecorderFactory> factories, IModulesService modules)
        {
            AddFactories(factories);

            modules.Register<ISessionRecorderFactory>(this, AddFactories); 
        }
Пример #9
0
 public ViewModelResolver(IEnumerable <IViewModelFactory> factories, IModulesService modules)
 {
     AddFactories(factories);
     modules.Register <IViewModelFactory>(this, AddFactories);
 }
Пример #10
0
        public SessionDefinitionsSource(IEnumerable <ISessionDefinitionsSource> collections, IModulesService modules)
        {
            collections?.ForEach(Link);

            modules.Register <ISessionDefinitionsSource>(this, c => c?.ForEach(Link));
        }