1 write to Id
Aspire.Hosting (1)
ApplicationModel\AnnotationDefinition.cs (1)
34
Id
= 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)
839
return builder.WithSerializedAnnotation(definition.
Id
, json);
870
var json = resource.GetSerializedAnnotation(definition.
Id
);
873
?? throw new InvalidOperationException($"Annotation '{definition.
Id
}' on resource '{resource.Name}' deserialized to null.");
889
var 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)
89
var json = container.Resource.GetSerializedAnnotation(s_stateAnnotation.
Id
);
112
await Verify(container.GetSerializedAnnotation(definition.
Id
), "json");
122
.WithSerializedAnnotation(definition.
Id
, """{"delay":1250.5,"optional":null}""");