1 type derived from ProbeAnnotation
Aspire.Hosting (1)
ApplicationModel\ProbeAnnotation.cs (1)
71
public sealed class EndpointProbeAnnotation :
ProbeAnnotation
11 references to ProbeAnnotation
Aspire.Hosting (2)
ResourceBuilderExtensions.cs (2)
5100
private static IResourceBuilder<T> WithProbe<T>(this IResourceBuilder<T> builder,
ProbeAnnotation
probeAnnotation) where T : IResourceWithProbes
5103
if (builder.Resource.Annotations.OfType<
ProbeAnnotation
>().SingleOrDefault(a => a.Type == probeAnnotation.Type) is { } existingAnnotation)
Aspire.Hosting.Azure.AppContainers (2)
BaseContainerAppContext.cs (2)
535
if (!Resource.TryGetAnnotationsOfType<
ProbeAnnotation
>(out var probeAnnotations))
540
foreach (
var
probeAnnotation in probeAnnotations)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
642
if (resource.TryGetAnnotationsOfType<
ProbeAnnotation
>(out var probeAnnotations))
Aspire.Hosting.Kubernetes (2)
KubernetesResource.cs (2)
327
if (!resource.TryGetAnnotationsOfType<
ProbeAnnotation
>(out var probeAnnotations))
332
foreach (
var
probeAnnotation in probeAnnotations)
Aspire.Hosting.Tests (4)
ResourceWithProbeTests.cs (4)
19
var annotations = resource.Resource.Annotations.OfType<
ProbeAnnotation
>().ToArray();
33
var annotations = resource.Resource.Annotations.OfType<
ProbeAnnotation
>().ToArray();
37
var
annotation = annotations[0];
53
var annotations = resource.Resource.Annotations.OfType<
ProbeAnnotation
>().ToArray();