WebHostDefaults 源码

  1 File: WebHostDefaults.cs
  2 Web Access
  3 Project: src\src\Hosting\Abstractions\src\Microsoft.AspNetCore.Hosting.Abstractions.csproj (Microsoft.AspNetCore.Hosting.Abstractions)
100 // Licensed to the .NET Foundation under one or more agreements.
101 // The .NET Foundation licenses this file to you under the MIT license.
102  
103 namespace Microsoft.AspNetCore.Hosting;
104  
105 /// <summary>
106 /// Contains a set of constants representing configuration keys.
107 /// </summary>
108 public static class WebHostDefaults
109 {
110     /// <summary>
111     /// The configuration key associated with an application name.
112     /// </summary>
113     public static readonly string ApplicationKey = "applicationName";
114  
115     /// <summary>
116     /// The configuration key associated with the startup assembly.
117     /// </summary>
118     public static readonly string StartupAssemblyKey = "startupAssembly";
119  
120     /// <summary>
121     /// The configuration key associated with "hostingStartupAssemblies" configuration.
122     /// </summary>
123     public static readonly string HostingStartupAssembliesKey = "hostingStartupAssemblies";
124  
125     /// <summary>
126     /// The configuration key associated with the "hostingStartupExcludeAssemblies" configuration.
127     /// </summary>
128     public static readonly string HostingStartupExcludeAssembliesKey = "hostingStartupExcludeAssemblies";
129  
130     /// <summary>
131     /// The configuration key associated with the "DetailedErrors" configuration.
132     /// </summary>
133     public static readonly string DetailedErrorsKey = "detailedErrors";
134  
135     /// <summary>
136     /// The configuration key associated with the application's environment setting.
137     /// </summary>
138     public static readonly string EnvironmentKey = "environment";
139  
140     /// <summary>
141     /// The configuration key associated with the "webRoot" configuration.
142     /// </summary>
143     public static readonly string WebRootKey = "webroot";
144  
145     /// <summary>
146     /// The configuration key associated with the "captureStartupErrors" configuration.
147     /// </summary>
148     public static readonly string CaptureStartupErrorsKey = "captureStartupErrors";
149  
150     /// <summary>
151     /// The configuration key associated with the "urls" configuration.
152     /// </summary>
153     public static readonly string ServerUrlsKey = "urls";
154  
155     /// <summary>
156     /// The configuration key associated with the "http_ports" configuration.
157     /// </summary>
158     public static readonly string HttpPortsKey = "http_ports";
159  
160     /// <summary>
161     /// The configuration key associated with the "https_ports" configuration.
162     /// </summary>
163     public static readonly string HttpsPortsKey = "https_ports";
164  
165     /// <summary>
166     /// The configuration key associated with the "ContentRoot" configuration.
167     /// </summary>
168     public static readonly string ContentRootKey = "contentRoot";
169  
170     /// <summary>
171     /// The configuration key associated with the "PreferHostingUrls" configuration.
172     /// </summary>
173     public static readonly string PreferHostingUrlsKey = "preferHostingUrls";
174  
175     /// <summary>
176     /// The configuration key associated with the "PreventHostingStartup" configuration.
177     /// </summary>
178     public static readonly string PreventHostingStartupKey = "preventHostingStartup";
179  
180     /// <summary>
181     /// The configuration key associated with the "SuppressStatusMessages" configuration.
182     /// </summary>
183     public static readonly string SuppressStatusMessagesKey = "suppressStatusMessages";
184  
185     /// <summary>
186     /// The configuration key associated with the "ShutdownTimeoutSeconds" configuration.
187     /// </summary>
188     public static readonly string ShutdownTimeoutKey = "shutdownTimeoutSeconds";
189  
190     /// <summary>
191     /// The configuration key associated with the "StaticWebAssets" configuration.
192     /// </summary>
193     public static readonly string StaticWebAssetsKey = "staticWebAssets";
194 }
195 Document OutlineProject ExplorerNamespace Explorer

 

posted on 2023-02-17 16:56  是水饺不是水饺  阅读(8)  评论(0编辑  收藏  举报

导航