Skip to content

Commit d0ab5e5

Browse files
guardrexRick Anderson
authored andcommitted
Add namespace to Generic Host example (dotnet#14852)
1 parent cfcd3fd commit d0ab5e5

File tree

1 file changed

+4
-2
lines changed
  • aspnetcore/fundamentals/host/generic-host/samples-snapshot/3.x

1 file changed

+4
-2
lines changed

aspnetcore/fundamentals/host/generic-host/samples-snapshot/3.x/Program.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ public static async Task Main(string[] args)
1515
}
1616

1717
public static IHostBuilder CreateHostBuilder(string[] args) =>
18-
#region snippet_HostConfig
18+
#region snippet_HostConfig
19+
// using Microsoft.Extensions.Configuration;
20+
1921
Host.CreateDefaultBuilder(args)
2022
.ConfigureHostConfiguration(configHost =>
2123
{
@@ -24,7 +26,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
2426
configHost.AddEnvironmentVariables(prefix: "PREFIX_");
2527
configHost.AddCommandLine(args);
2628
});
27-
#endregion
29+
#endregion
2830

2931
public static IHostBuilder CreateHostBuilder2(string[] args) =>
3032
#region snippet_HostOptions

0 commit comments

Comments
 (0)