Skip to content
Docs Try Aspire

CustomResourceSnapshot

Record sealed net10.0
📦 Aspire.Hosting v13.1.2
An immutable snapshot of the state of a resource.
namespace Aspire.Hosting.ApplicationModel;
public sealed record CustomResourceSnapshot
: System.IEquatable<Aspire.Hosting.ApplicationModel.CustomResourceSnapshot>
{
// ...
}
IEquatable<CustomResourceSnapshot>
View all constructors
Commandsget; init
ImmutableArray<ResourceCommandSnapshot>
The commands available in the dashboard for this resource.
CreationTimeStampget; init
DateTime?
The creation timestamp of the resource.
EnvironmentVariablesget; init
ImmutableArray<EnvironmentVariableSnapshot>
The environment variables that should show up in the dashboard for this resource.
ExitCodeget; init
int?
The exit code of the resource.
HealthReportsget
ImmutableArray<HealthReportSnapshot>
The health reports for this resource.
HealthStatusget
HealthStatus??
Gets the health status of the resource.
IconNameget; init
string?
The custom icon name for the resource. This should be a valid FluentUI icon name. If not specified, the dashboard will use default icons based on the resource type.
IconVariantget; init
The custom icon variant for the resource.
IsHiddenget; init
bool
Whether this resource should be hidden in UI.
Propertiesget; init
ImmutableArray<ResourcePropertySnapshot>
The properties that should show up in the dashboard for this resource.
Relationshipsget; init
ImmutableArray<RelationshipSnapshot>
The relationships to other resources.
ResourceTypeget; init
string
The type of the resource.
StartTimeStampget; init
DateTime?
The start timestamp of the resource.
Stateget; init
Represents the state of the resource.
StopTimeStampget; init
DateTime?
The stop timestamp of the resource.
Urlsget; init
ImmutableArray<UrlSnapshot>
The URLs that should show up in the dashboard for this resource.
Volumesget; init
ImmutableArray<VolumeSnapshot>
The volumes that should show up in the dashboard for this resource.
View all properties
View all methods