EnvironmentInfo.cs 497 B

1234567891011121314151617
  1. namespace WebTemplate.Status;
  2. public record EnvironmentInfo
  3. {
  4. public string ApplicationName { get; }
  5. public string EnvironmentName { get; }
  6. public string ContentRootPath { get; }
  7. public string WebRootPath { get; }
  8. public EnvironmentInfo(IWebHostEnvironment env)
  9. {
  10. ApplicationName = env.ApplicationName;
  11. EnvironmentName = env.EnvironmentName;
  12. ContentRootPath = env.ContentRootPath;
  13. WebRootPath = env.WebRootPath;
  14. }
  15. }