protected AbstractNeonComponent(ILoggerFactory loggerFactory, IIoTService ioTService, IComponentsService componentsService)
 {
     Logger            = loggerFactory.CreateLogger(GetType());
     Config            = new TConfig();
     IoTService        = ioTService;
     ComponentsService = componentsService;
 }
 public ComponentAssetMappingService(IComponentAssetMappingRepository componentAssetMappingRepository, IAssetRepository assetRepository, IEmployeeService employeeService, IComponentsService componentsService)
 {
     _componentAssetMappingRepository = componentAssetMappingRepository;
     _assetRepository   = assetRepository;
     _employeeService   = employeeService;
     _componentsService = componentsService;
 }
 public ComponentsController(IComponentsService componentsService, IComponentTypeService componentTypeService, IComponentAssetMappingService componentAssetMappingService, ILog logger)
 {
     _componentsService            = componentsService;
     _componentTypeService         = componentTypeService;
     _componentAssetMappingService = componentAssetMappingService;
     _logger = logger;
 }
Exemple #4
0
        public DirectLinkHub(IServiceProvider provider)
        {
            _provider = provider;
            _authenticationService = provider.GetService <IAuthenticationService>();
            _authorizationService  = provider.GetService <IAuthorizationService>();
            _routingService        = provider.GetRequiredService <IRoutingService>();
            _componentsService     = provider.GetRequiredService <IComponentsService>();

            var options = provider.GetRequiredService <DirectLinkOptionsProvider>().Options;

            _requestsPerSecond = options.RequestsPerSecond;
            if (_requestsPerSecond > 0)
            {
                _queuedRequestCount = options.QueuedRequestCount;
                _maxLinkCount       = options.MaxLinkCount;
                _requestDelay       = 1000 / _requestsPerSecond;
                _requestDelayTicks  = _requestDelay * 10000;
            }

            _logger = provider.GetRequiredService <ILogger <DirectLinkHub> >();
            if (HubContext == null)
            {
                HubContext = provider.GetRequiredService <IHubContext <DirectLinkHub> >();
            }
        }
Exemple #5
0
 public AssetService(IAssetCategoryService assetCategoryService
                     , IAssetTypeService assetTypeService
                     , IAssetRepository assetRepository
                     , IHardwareAssetService hardwareAssetService
                     , ISoftwareAssetService softwareAssetService
                     , IAssetTrackerService assetTrackerService
                     , IEmployeeService employeeService
                     , IComponentTypeService componentTypeService
                     , IComponentsService componentsService
                     , IComponentAssetMappingService componentAssetMappingService
                     , IEmployeeAssetMappingRepository employeeAssetMappingRepository
                     , IComponentTrackerService componentTrackerService)
 {
     _assetCategoryService           = assetCategoryService;
     _assetTypeService               = assetTypeService;
     _assetRepository                = assetRepository;
     _hardwareAssetService           = hardwareAssetService;
     _softwareAssetService           = softwareAssetService;
     _assetTrackerService            = assetTrackerService;
     _employeeService                = employeeService;
     _componentTypeService           = componentTypeService;
     _componentsService              = componentsService;
     _componentAssetMappingService   = componentAssetMappingService;
     _employeeAssetMappingRepository = employeeAssetMappingRepository;
     _componentTrackerService        = componentTrackerService;
 }
Exemple #6
0
 public AdminController(IServicesManager servicesManager, IScriptService scriptService,
                        IComponentsService componentsService, IUserInteractionService userInteractionService,
                        ISchedulerService schedulerService)
 {
     _userInteractionService = userInteractionService;
     _servicesManager        = servicesManager;
     _scriptService          = scriptService;
     _componentsService      = componentsService;
     _schedulerService       = schedulerService;
 }
Exemple #7
0
 public SpotifyComponent(ILoggerFactory loggerFactory,
                         IIoTService ioTService,
                         IHttpClientFactory httpClientFactory,
                         ISchedulerService schedulerService,
                         IUserInteractionService userInteractionService,
                         IComponentsService componentsService) : base(loggerFactory, ioTService, componentsService)
 {
     _schedulerService       = schedulerService;
     _userInteractionService = userInteractionService;
     _httpClient             = httpClientFactory.CreateClient();
 }
Exemple #8
0
 public PanasonicAirCondComponent(ILogger <IPanasonicAirCondComponent> logger,
                                  IComponentsService componentsService, ISchedulerService schedulerService, IIoTService ioTService,
                                  IHttpClientFactory clientFactory,
                                  IEventDatabaseService eventDatabaseService)
 {
     _logger               = logger;
     _componentsService    = componentsService;
     _schedulerService     = schedulerService;
     _ioTService           = ioTService;
     _httpClientFactory    = clientFactory;
     _eventDatabaseService = eventDatabaseService;
 }
Exemple #9
0
 public PhilipHueComponent(ILogger <PhilipHueComponent> logger,
                           IComponentsService componentsService,
                           IEventDatabaseService eventDatabaseService,
                           IIoTService ioTService,
                           ISchedulerService schedulerService,
                           IUserInteractionService userInteractionService)
 {
     _logger                 = logger;
     _componentsService      = componentsService;
     _userInteractionService = userInteractionService;
     _ioTService             = ioTService;
     _eventDatabaseService   = eventDatabaseService;
     _schedulerService       = schedulerService;
 }
Exemple #10
0
 public SpotifyWebComponent(ILogger <SpotifyWebComponent> logger,
                            IComponentsService componentsService,
                            IUserInteractionService userInteractionService,
                            IEventDatabaseService eventDatabaseService,
                            IIoTService ioTService,
                            ISchedulerService schedulerService,
                            IHttpClientFactory httpClientFactory)
 {
     _logger                 = logger;
     _schedulerService       = schedulerService;
     _componentsService      = componentsService;
     _userInteractionService = userInteractionService;
     _ioTService             = ioTService;
     _httpClient             = httpClientFactory.CreateClient();
 }
        public CommandDispatcherService(ILogger <ICommandDispatcherService> logger,
                                        IComponentsService componentsService,
                                        INotificationService notificationService)
        {
            _logger = logger;
            _notificationService = notificationService;
            _componentsService   = componentsService;
            _componentsService.RunningComponents.CollectionChanged += (sender, s) =>
            {
                var oc = (ObservableCollection <RunningComponentInfo>)sender;
                //_commands.Clear();
                var readonlyList = s.NewItems[0] as RunningComponentInfo;

                ScanCommands(new List <RunningComponentInfo>()
                {
                    readonlyList
                });
            };
        }
        public DirectLinkData(
            string app,
            IServiceProvider provider,
            IAuthorizationService authorizationService,
            IComponentsService componentsService
            )
        {
            _provider             = provider;
            _authorizationService = authorizationService;
            _componentsService    = componentsService;

            this.App           = app;
            this.Title         = null;
            this.States        = new Dictionary <string, object>();
            this.Scripts       = new Dictionary <string, string>();
            this.Styles        = new Dictionary <string, string>();
            this.Methods       = new Dictionary <string, IList <string> >();
            this.Bidirectional = new HashSet <string>();
            this.Message       = null;
            this.IsRouted      = false;
            this.IsAuthorized  = true;
        }
Exemple #13
0
        public RoutingService(
            IServiceProvider provider,
            IAuthorizationService authorizationService,
            IComponentsService componentsService,
            DirectLinkOptionsProvider optionsProvider
            )
        {
            _provider             = provider;
            _authorizationService = authorizationService;
            _componentsService    = componentsService;
            var routingEvents = provider.GetService <IRoutingEvents>();

            _onStarting  = routingEvents?.OnStarting() ?? Task.CompletedTask;
            _onCompleted = data => routingEvents?.OnCompleted(data) ?? Task.CompletedTask;

            var options = optionsProvider.Options;

            _entryType    = options.EntryType;
            _notFoundPath = options.NotFoundPath;
            _notAuthPath  = options.NotAuthPath;
            _errorPath    = options.ErrorPath;
            _pathBases    = new List <string>(options.PathBases);
        }
Exemple #14
0
 public PlexHookComponent(ILoggerFactory loggerFactory, IIoTService ioTService, IComponentsService componentsService) : base(loggerFactory, ioTService, componentsService)
 {
 }
Exemple #15
0
 public ExpensesController(IExpenseService expenses, IExpenseGroupService expenseGroups, IComponentsService componentsService)
 {
     this.expensesService     = expenses;
     this.expenseGroupService = expenseGroups;
     this.componentsService   = componentsService;
 }
Exemple #16
0
 public ChromecastComponent(ILoggerFactory loggerFactory, IIoTService ioTService, IComponentsService componentsService) : base(loggerFactory, ioTService, componentsService)
 {
 }
 public IncomesController(IMonthlyIncomeService monthlyIncomeService, IComponentsService componentsService)
 {
     this.componentsService    = componentsService;
     this.monthlyIncomeService = monthlyIncomeService;
 }
Exemple #18
0
 public SonarrComponent(ILoggerFactory loggerFactory, IIoTService ioTService, IComponentsService componentsService) : base(loggerFactory, ioTService, componentsService)
 {
 }
Exemple #19
0
 public PhilipHueComponent(ILoggerFactory loggerFactory, IIoTService ioTService, IComponentsService componentsService)
     : base(loggerFactory, ioTService, componentsService)
 {
 }
 public SystemMonitorComponent(ILoggerFactory loggerFactory, IIoTService ioTService, IComponentsService componentsService) : base(loggerFactory, ioTService, componentsService)
 {
 }
Exemple #21
0
 public OwnTracksComponent(ILoggerFactory loggerFactory, IIoTService ioTService, IMqttService mqttService, NeonConfig neonConfig, IComponentsService componentsService) : base(loggerFactory, ioTService, componentsService)
 {
     _mqttService = mqttService;
     _config      = neonConfig;
 }
Exemple #22
0
 public ComponentsController(IComponentsService componentsService)
 {
     _componentsService = componentsService;
 }
Exemple #23
0
 public PanasonicAirComponent(ILoggerFactory loggerFactory, IIoTService ioTService, IComponentsService componentsService, IHttpClientFactory httpClientFactory) : base(loggerFactory, ioTService, componentsService)
 {
     _aircoManager = new AircoManager(httpClientFactory.CreateClient());
 }
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="componentsService"></param>
 public ComponentsServiceLuaObject(ILogger <ComponentsServiceLuaObject> logger,
                                   IComponentsService componentsService)
 {
     _logger            = logger;
     _componentsService = componentsService;
 }
Exemple #25
0
 public DarkSkyComponent(ILoggerFactory loggerFactory, IIoTService ioTService, NeonConfig neonConfig, IComponentsService componentsService) : base(loggerFactory, ioTService, componentsService)
 {
     _homeConfig = neonConfig.HomeConfig;
 }
Exemple #26
0
 public SunComponent(ILoggerFactory loggerFactory, IIoTService ioTService, NeonConfig neonConfig, IComponentsService componentsService, IHttpClientFactory httpClientFactory) : base(loggerFactory, ioTService, componentsService)
 {
     _homeConfig = neonConfig.HomeConfig;
     _httpClient = httpClientFactory.CreateClient();
 }
Exemple #27
0
 public UserDashboardController(IExpenseService expenseService, IComponentsService componentsService)
 {
     this.expenseService    = expenseService;
     this.componentsService = componentsService;
 }
Exemple #28
0
 public SonoffTasmodaComponent(ILoggerFactory loggerFactory, IIoTService ioTService, IMqttService mqttService, IComponentsService componentsService) : base(loggerFactory, ioTService, componentsService)
 {
     _mqttService = mqttService;
 }
Exemple #29
0
 public BroadlinkComponent(ILoggerFactory loggerFactory, IIoTService ioTService, IComponentsService componentsService) : base(loggerFactory, ioTService, componentsService)
 {
 }
 public ComponentsController(IComponentsService componentsService, ICurrenciesService currenciesService, IComponentTypesService componentTypesService)
 {
     this.componentsService     = componentsService;
     this.currenciesService     = currenciesService;
     this.componentTypesService = componentTypesService;
 }