18 references to Resource
Aspire.Hosting.Azure.AppContainers (18)
BaseContainerAppContext.cs (2)
440
if (
Resource
is ContainerResource containerResource && containerResource.Entrypoint is { } entrypoint)
556
if (!
Resource
.TryGetAnnotationsOfType<ProbeAnnotation>(out var probeAnnotations))
ContainerAppContext.cs (11)
36
if (!TryGetContainerImageName(
Resource
, out var containerImageName))
47
if (
Resource
.TryGetLastAnnotation<AppIdentityAnnotation>(out var appIdentityAnnotation))
74
MinReplicas = _containerAppEnvironmentContext.Environment.IsExpress && !
Resource
.HasAnnotationOfType<ReplicaAnnotation>()
76
:
Resource
.GetReplicaCount()
96
if (
Resource
.TryGetAnnotationsOfType<AzureContainerAppCustomizationAnnotation>(out var annotations))
107
var containerApp = new ContainerApp(Infrastructure.NormalizeBicepIdentifier(
Resource
.Name))
124
else if (
Resource
is IDotnetProgramResource)
135
if (
Resource
.HasAnnotationOfType<AzureFunctionsAnnotation>())
146
var resolvedEndpoints =
Resource
.ResolveEndpoints();
227
var targetPort = httpIngress.Port ?? (
Resource
is IDotnetProgramResource ? null : 80);
253
_containerAppEnvironmentContext.RecordHttpsUpgrade(
Resource
.Name, upgradedEndpoints);
ContainerAppJobContext.cs (5)
27
if (!TryGetContainerImageName(
Resource
, out var containerImageName))
38
if (
Resource
.TryGetLastAnnotation<AppIdentityAnnotation>(out var appIdentityAnnotation))
77
if (
Resource
.TryGetAnnotationsOfType<AzureContainerAppJobCustomizationAnnotation>(out var annotations))
88
var containerApp = new ContainerAppJob(Infrastructure.NormalizeBicepIdentifier(
Resource
.Name))
100
if (
Resource
.HasAnnotationOfType<AzureFunctionsAnnotation>())