コード例 #1
0
ファイル: ServicesConfig.cs プロジェクト: tgiachi/Neon
 public ServicesConfig()
 {
     MqttConfig         = new MqttConfig();
     IoTConfig          = new IoTConfig();
     DiscoveryConfig    = new DiscoveryConfig();
     ScriptEngineConfig = new ScriptEngineConfig();
     PluginsConfig      = new PluginsConfig();
 }
コード例 #2
0
ファイル: NeonConfig.cs プロジェクト: buibup/Neon.HomeControl
 public NeonConfig()
 {
     Database           = new DatabaseConfig();
     Scripts            = new ScriptConfig();
     Mqtt               = new MqttConfig();
     Plugins            = new PluginConfig();
     Tasks              = new TaskConfig();
     FileSystem         = new FileSystemConfig();
     Components         = new ComponentConfig();
     EventsDatabase     = new EventDatabaseConfig();
     IoT                = new IoTConfig();
     JwtToken           = "password";
     AutoLoadComponents = true;
     Home               = new HomeConfig();
 }
コード例 #3
0
ファイル: IoTService.cs プロジェクト: tgiachi/Neon
 public IoTService(ILogger <IoTService> logger, INoSqlService noSqlService, NeonConfig neonConfig)
 {
     _logger       = logger;
     _noSqlService = noSqlService;
     _config       = neonConfig.ServicesConfig.IoTConfig;
 }
コード例 #4
0
 public HomeController(IOptions <IoTConfig> settings)
 {
     _settings = settings.Value;
 }
コード例 #5
0
 public IndexModel(IoTConfig config)
 {
     _iotConfig = config;
 }