31 references to ProbeType
Aspire.Hosting (5)
ApplicationModel\ProbeAnnotation.cs (1)
39
public required
ProbeType
Type { get; init; }
ResourceBuilderExtensions.cs (4)
3220
public static IResourceBuilder<T> WithHttpProbe<T>(this IResourceBuilder<T> builder,
ProbeType
type, string? path = null, int? initialDelaySeconds = null, int? periodSeconds = null, int? timeoutSeconds = null, int? failureThreshold = null, int? successThreshold = null, string? endpointName = null)
3233
/// ATS export stub for <see cref="WithHttpProbe{T}(IResourceBuilder{T},
ProbeType
, string?, int?, int?, int?, int?, int?, string?)"/>
3238
internal static IResourceBuilder<T> WithHttpProbeExport<T>(this IResourceBuilder<T> builder,
ProbeType
probeType, string? path = null, int? initialDelaySeconds = null, int? periodSeconds = null, int? timeoutSeconds = null, int? failureThreshold = null, int? successThreshold = null, string? endpointName = null)
3279
public static IResourceBuilder<T> WithHttpProbe<T>(this IResourceBuilder<T> builder,
ProbeType
type, Func<EndpointReference>? endpointSelector, string? path = null, int? initialDelaySeconds = null, int? periodSeconds = null, int? timeoutSeconds = null, int? failureThreshold = null, int? successThreshold = null)
Aspire.Hosting.Azure.AppContainers (2)
BaseContainerAppContext.cs (2)
555
ProbeType
.Startup => ContainerAppProbeType.Startup,
556
ProbeType
.Readiness => ContainerAppProbeType.Readiness,
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceWebsiteContext.cs (1)
600
.OrderBy(probeAnnotation => probeAnnotation.Type ==
ProbeType
.Liveness ? 0 : 1)
Aspire.Hosting.Azure.Tests (10)
AzureAppServiceTests.cs (2)
458
.WithHttpProbe(
ProbeType
.Readiness, "/ready", initialDelaySeconds: 60) // This will be ignored
459
.WithHttpProbe(
ProbeType
.Liveness, "/health");
AzureContainerAppsTests.cs (8)
1980
.WithHttpProbe(
ProbeType
.Readiness, "/ready")
1981
.WithHttpProbe(
ProbeType
.Liveness, "/health");
1986
.WithHttpProbe(
ProbeType
.Readiness, "/ready", initialDelaySeconds: 60)
1987
.WithHttpProbe(
ProbeType
.Liveness, "/health");
2022
.WithHttpProbe(
ProbeType
.Liveness, "/health");
2027
.WithHttpProbe(
ProbeType
.Liveness, "/health");
2062
.WithHttpProbe(
ProbeType
.Liveness, "/health");
2067
.WithHttpProbe(
ProbeType
.Liveness, "/health");
Aspire.Hosting.Kubernetes (4)
Extensions\ResourceExtensions.cs (3)
386
case
ProbeType
.Startup:
390
case
ProbeType
.Readiness:
394
case
ProbeType
.Liveness:
KubernetesResource.cs (1)
33
internal List<(
ProbeType
Type, ProbeV1 Probe)> Probes { get; } = [];
Aspire.Hosting.Kubernetes.Tests (4)
KubernetesPublisherTests.cs (4)
242
.WithHttpProbe(
ProbeType
.Readiness, "/ready")
243
.WithHttpProbe(
ProbeType
.Liveness, "/health");
248
.WithHttpProbe(
ProbeType
.Readiness,"/ready", initialDelaySeconds: 60)
249
.WithHttpProbe(
ProbeType
.Liveness, "/health");
Aspire.Hosting.Tests (5)
ResourceWithProbeTests.cs (5)
17
resource.WithHttpProbe(
ProbeType
.Startup, "/health");
30
resource.WithHttpProbe(
ProbeType
.Readiness, "/health");
31
resource.WithHttpProbe(
ProbeType
.Readiness, "/ready");
50
resource.WithHttpProbe(
ProbeType
.Liveness, "/health", endpointName: endpointName);
51
resource.WithHttpProbe(
ProbeType
.Readiness, "/ready", endpointName: endpointName);