Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make the other string properties in HostingEnvironment default to str…
…ing.Empty.
  • Loading branch information
eerhardt committed Jul 29, 2022
commit 78914b5620718f123d7abf85d44ab704a8b4e269
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ namespace Microsoft.Extensions.Hosting.Internal
public class HostingEnvironment : IHostingEnvironment, IHostEnvironment
#pragma warning restore CS0618 // Type or member is obsolete
{
public string EnvironmentName { get; set; } = null!;
public string EnvironmentName { get; set; } = string.Empty;

public string ApplicationName { get; set; } = string.Empty;

public string ContentRootPath { get; set; } = null!;
public string ContentRootPath { get; set; } = string.Empty;

public IFileProvider ContentRootFileProvider { get; set; } = null!;
}
Expand Down