17 references to Resource
Aspire.Hosting.Azure.AppContainers (17)
BaseContainerAppContext.cs (1)
346
if (
Resource
is ContainerResource containerResource && containerResource.Entrypoint is { } entrypoint)
ContainerAppContext.cs (11)
33
if (!TryGetContainerImageName(
Resource
, out var containerImageName))
44
if (
Resource
.TryGetLastAnnotation<AppIdentityAnnotation>(out var appIdentityAnnotation))
71
MinReplicas =
Resource
.GetReplicaCount()
90
if (
Resource
.TryGetAnnotationsOfType<AzureContainerAppCustomizationAnnotation>(out var annotations))
101
var containerApp = new ContainerApp(Infrastructure.NormalizeBicepIdentifier(
Resource
.Name))
115
if (
Resource
is ProjectResource)
125
if (
Resource
.HasAnnotationOfType<AzureFunctionsAnnotation>())
139
if (!
Resource
.TryGetEndpoints(out var endpoints) || !endpoints.Any())
172
int? targetPort = (
Resource
, endpoint.UriScheme, endpoint.TargetPort, endpoint.Port) switch
190
if (
Resource
is ProjectResource && IsHttpScheme(endpoint.UriScheme))
292
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>())