You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Runtime/NetDaemon.Runtime/Common/Extensions/HostBuilderExtensions.cs
+20-14Lines changed: 20 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
usingMicrosoft.Extensions.Configuration;
2
2
usingNetDaemon.AppModel;
3
-
usingNetDaemon.HassModel;
4
-
usingNetDaemon.Runtime.Internal;
5
3
6
4
namespaceNetDaemon.Runtime;
7
5
@@ -19,7 +17,7 @@ public static class HostBuilderExtensions
19
17
/// - Register appsettings.json to the host configuration
20
18
/// - Register all the yaml settings from the path set in the current configuration to the configuration provider
21
19
/// - Call 'ConfigureNetDaemonServices' in the service collection
22
-
///
20
+
///
23
21
/// You can call these methods separately if you want to do something else in between, or if you're calling any of these methods already.
24
22
/// Change `UseNetDaemonAppSettings` to `.RegisterAppSettingsJsonToHost().RegisterYamlSettings()` and call `ConfigureNetDaemonServices(context.Configuration)` in ConfigureServices.
25
23
/// </remarks>
@@ -28,18 +26,33 @@ public static IHostBuilder UseNetDaemonAppSettings(this IHostBuilder hostBuilder
0 commit comments