-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
HostingEnvironment.cs
38 lines (33 loc) · 1.8 KB
/
HostingEnvironment.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
28
29
30
31
32
33
34
35
36
37
38
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
using Microsoft.Extensions.FileProviders;
namespace Microsoft.Extensions.Hosting.Internal
{
/// <summary>
/// This API supports infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
[DebuggerDisplay("ApplicationName = {ApplicationName}, EnvironmentName = {EnvironmentName}")]
#pragma warning disable CS0618 // Type or member is obsolete
public class HostingEnvironment : IHostingEnvironment, IHostEnvironment
#pragma warning restore CS0618 // Type or member is obsolete
{
/// <summary>
/// This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
/// </summary>
public string EnvironmentName { get; set; } = string.Empty;
/// <summary>
/// This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
/// </summary>
public string ApplicationName { get; set; } = string.Empty;
/// <summary>
/// This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
/// </summary>
public string ContentRootPath { get; set; } = string.Empty;
/// <summary>
/// This API supports infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.
/// </summary>
public IFileProvider ContentRootFileProvider { get; set; } = null!;
}
}