18 references to Resource
Aspire.Hosting.Azure.AppContainers (18)
BaseContainerAppContext.cs (2)
454
if (
Resource
is ContainerResource containerResource && containerResource.Entrypoint is { } entrypoint)
570
if (!
Resource
.TryGetAnnotationsOfType<ProbeAnnotation>(out var probeAnnotations))
ContainerAppContext.cs (11)
35
if (!TryGetContainerImageName(
Resource
, out var containerImageName))
46
if (
Resource
.TryGetLastAnnotation<AppIdentityAnnotation>(out var appIdentityAnnotation))
73
MinReplicas = _containerAppEnvironmentContext.Environment.IsExpress && !
Resource
.HasAnnotationOfType<ReplicaAnnotation>()
75
:
Resource
.GetReplicaCount()
95
if (
Resource
.TryGetAnnotationsOfType<AzureContainerAppCustomizationAnnotation>(out var annotations))
106
var containerApp = new ContainerApp(Infrastructure.NormalizeBicepIdentifier(
Resource
.Name))
119
if (!_containerAppEnvironmentContext.Environment.IsExpress &&
Resource
is IDotnetProgramResource)
132
if (
Resource
.HasAnnotationOfType<AzureFunctionsAnnotation>())
143
var resolvedEndpoints =
Resource
.ResolveEndpoints();
224
var targetPort = httpIngress.Port ?? (
Resource
is IDotnetProgramResource ? null : 80);
250
_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>())