1 type derived from ProbeAnnotation
Aspire.Hosting (1)
ApplicationModel\ProbeAnnotation.cs (1)
71public sealed class EndpointProbeAnnotation : ProbeAnnotation
11 references to ProbeAnnotation
Aspire.Hosting (2)
ResourceBuilderExtensions.cs (2)
2442private static IResourceBuilder<T> WithProbe<T>(this IResourceBuilder<T> builder, ProbeAnnotation probeAnnotation) where T : IResourceWithProbes 2445if (builder.Resource.Annotations.OfType<ProbeAnnotation>().SingleOrDefault(a => a.Type == probeAnnotation.Type) is { } existingAnnotation)
Aspire.Hosting.Azure.AppContainers (2)
BaseContainerAppContext.cs (2)
463if (!Resource.TryGetAnnotationsOfType<ProbeAnnotation>(out var probeAnnotations)) 468foreach (var probeAnnotation in probeAnnotations)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
311if (resource.TryGetAnnotationsOfType<ProbeAnnotation>(out var probeAnnotations))
Aspire.Hosting.Kubernetes (2)
KubernetesResource.cs (2)
232if (!resource.TryGetAnnotationsOfType<ProbeAnnotation>(out var probeAnnotations)) 237foreach (var probeAnnotation in probeAnnotations)
Aspire.Hosting.Tests (4)
ResourceWithProbeTests.cs (4)
18var annotations = resource.Resource.Annotations.OfType<ProbeAnnotation>().ToArray(); 32var annotations = resource.Resource.Annotations.OfType<ProbeAnnotation>().ToArray(); 36var annotation = annotations[0]; 52var annotations = resource.Resource.Annotations.OfType<ProbeAnnotation>().ToArray();