1 write to Id
Aspire.Hosting (1)
ApplicationModel\AnnotationDefinition.cs (1)
34Id = id;
9 references to Id
Aspire.Hosting (6)
ApplicationModel\AnnotationDefinition.cs (1)
13/// <see cref="Id"/> namespaces the stored value and <typeparamref name="TData"/> describes its shape.
ResourceBuilderExtensions.cs (5)
839return builder.WithSerializedAnnotation(definition.Id, json); 870var json = resource.GetSerializedAnnotation(definition.Id); 873?? throw new InvalidOperationException($"Annotation '{definition.Id}' on resource '{resource.Name}' deserialized to null."); 889var json = TryGetSerializedAnnotation(resource, definition.Id); 897?? throw new InvalidOperationException($"Annotation '{definition.Id}' on resource '{resource.Name}' deserialized to null.");
Aspire.Hosting.Tests (3)
AtsAnnotationTests.cs (3)
89var json = container.Resource.GetSerializedAnnotation(s_stateAnnotation.Id); 112await Verify(container.GetSerializedAnnotation(definition.Id), "json"); 122.WithSerializedAnnotation(definition.Id, """{"delay":1250.5,"optional":null}""");