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)
3310
private static IResourceBuilder<T> WithProbe<T>(this IResourceBuilder<T> builder,
ProbeAnnotation
probeAnnotation) where T : IResourceWithProbes
3313
if (builder.Resource.Annotations.OfType<
ProbeAnnotation
>().SingleOrDefault(a => a.Type == probeAnnotation.Type) is { } existingAnnotation)
Aspire.Hosting.Azure.AppContainers (2)
BaseContainerAppContext.cs (2)
520
if (!Resource.TryGetAnnotationsOfType<
ProbeAnnotation
>(out var probeAnnotations))
525
foreach (
var
probeAnnotation in probeAnnotations)
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
595
if (resource.TryGetAnnotationsOfType<
ProbeAnnotation
>(out var probeAnnotations))
Aspire.Hosting.Kubernetes (2)
KubernetesResource.cs (2)
252
if (!resource.TryGetAnnotationsOfType<
ProbeAnnotation
>(out var probeAnnotations))
257
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();