| File: ApplicationMetadata.cs | Web Access |
| Project: src\src\Libraries\Microsoft.Extensions.AmbientMetadata.Application\Microsoft.Extensions.AmbientMetadata.Application.csproj (Microsoft.Extensions.AmbientMetadata.Application) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.ComponentModel.DataAnnotations; namespace Microsoft.Extensions.AmbientMetadata; /// <summary> /// Application-level metadata model. /// </summary> public class ApplicationMetadata { /// <summary> /// Gets or sets the deployment ring from where the application is running. /// </summary> public string? DeploymentRing { get; set; } /// <summary> /// Gets or sets the application's build version. /// </summary> public string? BuildVersion { get; set; } /// <summary> /// Gets or sets the application's name. /// </summary> [Required] public string ApplicationName { get; set; } = string.Empty; /// <summary> /// Gets or sets the application's environment name, such as Development, Staging, or Production. /// </summary> [Required] public string EnvironmentName { get; set; } = string.Empty; }