5 instantiations of Resource
Aspire.Hosting (5)
artifacts\obj\Aspire.Hosting\Debug\net10.0\Dashboard\proto\DashboardService.cs (4)
5046private static readonly pb::MessageParser<Resource> _parser = new pb::MessageParser<Resource>(() => new Resource()); 5104return new Resource(this); 6707Upsert = new global::Aspire.DashboardService.Proto.V1.Resource(); 6779global::Aspire.DashboardService.Proto.V1.Resource subBuilder = new global::Aspire.DashboardService.Proto.V1.Resource();
Dashboard\proto\Partials.cs (1)
13var resource = new Resource
26 references to Resource
Aspire.Hosting (23)
artifacts\obj\Aspire.Hosting\Debug\net10.0\Dashboard\proto\DashboardService.cs (19)
252new pbr::GeneratedClrTypeInfo(typeof(global::Aspire.DashboardService.Proto.V1.Resource), global::Aspire.DashboardService.Proto.V1.Resource.Parser, new[]{ "Name", "ResourceType", "DisplayName", "Uid", "State", "CreatedAt", "Environment", "Commands", "Properties", "Urls", "StateStyle", "Volumes", "HealthReports", "StartedAt", "StoppedAt", "Relationships", "IsHidden", "SupportsDetailedTelemetry", "IconName", "IconVariant", "ResourceTypeDisplayName" }, new[]{ "State", "CreatedAt", "StateStyle", "StartedAt", "StoppedAt", "IconName", "IconVariant", "ResourceTypeDisplayName" }, null, null, null), 5041internal sealed partial class Resource : pb::IMessage<Resource> 5046private static readonly pb::MessageParser<Resource> _parser = new pb::MessageParser<Resource>(() => new Resource()); 5051public static pb::MessageParser<Resource> Parser { get { return _parser; } } 5075public Resource(Resource other) : this() { 5103public Resource Clone() { 5474return Equals(other as Resource); 5479public bool Equals(Resource other) { 5756public void MergeFrom(Resource other) { 6100private static readonly pb::FieldCodec<global::Aspire.DashboardService.Proto.V1.Resource> _repeated_resources_codec 6101= pb::FieldCodec.ForMessage(10, global::Aspire.DashboardService.Proto.V1.Resource.Parser); 6102private readonly pbc::RepeatedField<global::Aspire.DashboardService.Proto.V1.Resource> resources_ = new pbc::RepeatedField<global::Aspire.DashboardService.Proto.V1.Resource>(); 6105public pbc::RepeatedField<global::Aspire.DashboardService.Proto.V1.Resource> Resources { 6569public global::Aspire.DashboardService.Proto.V1.Resource Upsert { 6570get { return kindCase_ == KindOneofCase.Upsert ? (global::Aspire.DashboardService.Proto.V1.Resource) kind_ : null; } 6779global::Aspire.DashboardService.Proto.V1.Resource subBuilder = new global::Aspire.DashboardService.Proto.V1.Resource();
Dashboard\DashboardService.cs (2)
334data.Resources.Add(Resource.FromSnapshot(resource)); 349change.Upsert = Resource.FromSnapshot(update.Resource);
Dashboard\proto\Partials.cs (2)
11public static Resource FromSnapshot(ResourceSnapshot snapshot) 13var resource = new Resource
Aspire.Hosting.Tests (3)
Dashboard\DashboardServiceTests.cs (1)
242var resourceData = Assert.Single(update.InitialData.Resources);
Dashboard\ResourcePublisherTests.cs (2)
28var resource = Aspire.DashboardService.Proto.V1.Resource.FromSnapshot(CreateResourceSnapshot("cache", state));