18 references to Resource
Aspire.Hosting.Azure.AppContainers (18)
BaseContainerAppContext.cs (2)
346
if (
Resource
is ContainerResource containerResource && containerResource.Entrypoint is { } entrypoint)
463
if (!
Resource
.TryGetAnnotationsOfType<ProbeAnnotation>(out var probeAnnotations))
ContainerAppContext.cs (11)
33
if (!TryGetContainerImageName(
Resource
, out var containerImageName))
44
if (
Resource
.TryGetLastAnnotation<AppIdentityAnnotation>(out var appIdentityAnnotation))
71
MinReplicas =
Resource
.GetReplicaCount()
91
if (
Resource
.TryGetAnnotationsOfType<AzureContainerAppCustomizationAnnotation>(out var annotations))
102
var containerApp = new ContainerApp(Infrastructure.NormalizeBicepIdentifier(
Resource
.Name))
116
if (
Resource
is ProjectResource)
126
if (
Resource
.HasAnnotationOfType<AzureFunctionsAnnotation>())
140
if (!
Resource
.TryGetEndpoints(out var endpoints) || !endpoints.Any())
173
int? targetPort = (
Resource
, endpoint.UriScheme, endpoint.TargetPort, endpoint.Port) switch
191
if (
Resource
is ProjectResource && IsHttpScheme(endpoint.UriScheme))
293
var targetPort = httpIngress.Port ?? (
Resource
is ProjectResource ? null : 80);
ContainerAppJobContext.cs (5)
29
if (!TryGetContainerImageName(
Resource
, out var containerImageName))
40
if (
Resource
.TryGetLastAnnotation<AppIdentityAnnotation>(out var appIdentityAnnotation))
79
if (
Resource
.TryGetAnnotationsOfType<AzureContainerAppJobCustomizationAnnotation>(out var annotations))
90
var containerApp = new ContainerAppJob(Infrastructure.NormalizeBicepIdentifier(
Resource
.Name))
102
if (
Resource
.HasAnnotationOfType<AzureFunctionsAnnotation>())