CustomResourceSnapshot
Record sealed net10.0
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>
25 members
Constructors1
Section titled ConstructorsProperties17
Section titled PropertiesCommandsget; initImmutableArray<ResourceCommandSnapshot> The commands available in the dashboard for this resource.
CreationTimeStampget; initDateTime? The creation timestamp of the resource.
EnvironmentVariablesget; initImmutableArray<EnvironmentVariableSnapshot> The environment variables that should show up in the dashboard for this resource.
ExitCodeget; initint? The exit code of the resource.
HealthReportsgetImmutableArray<HealthReportSnapshot> The health reports for this resource.
HealthStatusgetHealthStatus?? Gets the health status of the resource.
IconNameget; initstring? 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.
Propertiesget; initImmutableArray<ResourcePropertySnapshot> The properties that should show up in the dashboard for this resource.
Relationshipsget; initImmutableArray<RelationshipSnapshot> The relationships to other resources.
ResourceTypeget; initstring The type of the resource.
StartTimeStampget; initDateTime? The start timestamp of the resource.
Stateget; init Represents the state of the resource.
StopTimeStampget; initDateTime? The stop timestamp of the resource.
Urlsget; initImmutableArray<UrlSnapshot> The URLs that should show up in the dashboard for this resource.
Volumesget; initImmutableArray<VolumeSnapshot> The volumes that should show up in the dashboard for this resource.
Methods7
Section titled Methods<Clone>$Equals(object?)boolDetermines whether the specified object is equal to the current object.
Equals(CustomResourceSnapshot?)boolIndicates whether the current object is equal to another object of the same type.
GetHashCodeintServes as the default hash function.
op_Equality(CustomResourceSnapshot?, CustomResourceSnapshot?)staticboolop_Inequality(CustomResourceSnapshot?, CustomResourceSnapshot?)staticboolToStringstringReturns a string that represents the current object.