/
HostDefaults.cs
27 lines (24 loc) · 1 KB
/
HostDefaults.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Microsoft.Extensions.Hosting
{
/// <summary>
/// Constants for HostBuilder configuration keys.
/// </summary>
public static class HostDefaults
{
/// <summary>
/// The configuration key used to set <see cref="IHostEnvironment.ApplicationName"/>.
/// </summary>
public static readonly string ApplicationKey = "applicationName";
/// <summary>
/// The configuration key used to set <see cref="IHostEnvironment.EnvironmentName"/>.
/// </summary>
public static readonly string EnvironmentKey = "environment";
/// <summary>
/// The configuration key used to set <see cref="IHostEnvironment.ContentRootPath"/>
/// and <see cref="IHostEnvironment.ContentRootFileProvider"/>.
/// </summary>
public static readonly string ContentRootKey = "contentRoot";
}
}