Exemplo n.º 1
0
        public ServicesManager(ILogger <ServicesManager> logger, INeonManager neonManager)
        {
            _logger      = logger;
            _neonManager = neonManager;

            SortServices();
        }
Exemplo n.º 2
0
 public NotificationService(ILogger <NotificationService> logger, IMediator mediator, IFileSystemManager fileSystemManager, INeonManager neonManager, List <NotifierData> notifierData, NeonConfig neonConfig)
 {
     _logger                  = logger;
     _fileSystemManager       = fileSystemManager;
     _mediator                = mediator;
     _neonManager             = neonManager;
     _notifierData            = notifierData;
     _notifierConfigDirectory = neonConfig.NotifierConfig.DirectoryConfig.DirectoryName;
 }
Exemplo n.º 3
0
 public DiscoveryService(ILogger <DiscoveryService> logger, NeonConfig neonConfig, ISchedulerService schedulerService, List <DiscoveryListenerData> discoveryListeners, INeonManager neonManager)
 {
     _neonManager        = neonManager;
     _uuid               = neonConfig.EngineConfig.Uuid;
     _discoveryListeners = discoveryListeners;
     _discoveryConfig    = neonConfig.ServicesConfig.DiscoveryConfig;
     _schedulerService   = schedulerService;
     _logger             = logger;
     DiscoveredDevices   = new ObservableCollection <DiscoveryDevice>();
 }
Exemplo n.º 4
0
 public CommandDispatcherService(ILogger <CommandDispatcherService> logger,
                                 List <CommandPreloadData> commandPreloadData, INeonManager neonManager)
 {
     _logger        = logger;
     _neonManager   = neonManager;
     CommandPreload = commandPreloadData;
     CommandPreload.ForEach(c =>
     {
         _commands.Add(c.CommandName, c);
     });
 }
Exemplo n.º 5
0
 public ScriptEngineService(ILogger <ScriptEngineService> logger,
                            INeonManager neonManager,
                            IFileSystemManager fileSystemManager,
                            NeonConfig neonConfig)
 {
     _logger            = logger;
     _neonManager       = neonManager;
     _fileSystemManager = fileSystemManager;
     _neonConfig        = neonConfig;
     _config            = neonConfig.ServicesConfig.ScriptEngineConfig;
     Functions          = new List <ScriptFunctionData>();
     Variables          = new List <ScriptEngineVariable>();
 }
Exemplo n.º 6
0
 public ComponentsService(ILogger <ComponentsService> logger,
                          NeonConfig neonConfig,
                          INeonManager neonManager,
                          IFileSystemManager fileSystemManager,
                          ISchedulerService schedulerService)
 {
     _logger             = logger;
     _neonConfig         = neonConfig;
     _fileSystemManager  = fileSystemManager;
     _neonManager        = neonManager;
     _config             = _neonConfig.ComponentsConfig;
     _schedulerService   = schedulerService;
     ComponentsData      = new ObservableCollection <ComponentData>();
     AvailableComponents = new List <AvailableComponent>();
 }
Exemplo n.º 7
0
        public static IWebHost CreateWebHostBuilder(string[] args)
        {
            NeonManager = new NeonManager();

            var host = WebHost.CreateDefaultBuilder(args)
                       .ConfigureKestrel(opts =>
            {
                opts.ListenAnyIP(5000, options => options.Protocols = HttpProtocols.Http1AndHttp2);
            })
                       .UseStartup <Startup>()
                       .UseLibuv()
                       .UseMetrics()
                       .UseIISIntegration()
                       .UseSerilog();

            return(host.Build());
        }
Exemplo n.º 8
0
 public SchedulerService(ILogger <SchedulerService> logger, INeonManager neonManager)
 {
     JobsInfo     = new List <JobInfo>();
     _logger      = logger;
     _neonManager = neonManager;
 }
Exemplo n.º 9
0
 public AuthController(ILogger <AuthController> logger, List <OAuthReceiverData> oAuthReceiverData, INeonManager neonManager)
 {
     _logger            = logger;
     _oAuthReceiverData = oAuthReceiverData;
     _neonManager       = neonManager;
 }
Exemplo n.º 10
0
 public NoSqlService(ILogger <NoSqlService> logger, INeonManager neonManager)
 {
     _logger      = logger;
     _neonManager = neonManager;
 }
Exemplo n.º 11
0
 public ConfigManager(ILogger logger, INeonManager neonManager, ContainerBuilder containerBuilder)
 {
     _containerBuilder = containerBuilder;
     _logger           = logger;
     _neonManager      = neonManager;
 }
Exemplo n.º 12
0
 public HooksController(List <WebHookReceiverData> webHookReceiverData, INeonManager neonManager)
 {
     _webHookReceiverData = webHookReceiverData;
     _neonManager         = neonManager;
 }
Exemplo n.º 13
0
 public StateService(ILogger <StateService> logger, INeonManager neonManager, IFileSystemManager fileSystemManager)
 {
     _logger            = logger;
     _neonManager       = neonManager;
     _fileSystemManager = fileSystemManager;
 }