50 references to TryGetLastAnnotation
Aspire.Hosting (6)
ApplicationModel\CommandsConfigurationExtensions.cs (1)
17
if (resource.
TryGetLastAnnotation
<ExcludeLifecycleCommandsAnnotation>(out _))
ApplicationModel\ResourceExtensions.cs (2)
545
if (resource.
TryGetLastAnnotation
<ContainerLifetimeAnnotation>(out var lifetimeAnnotation))
562
return !resource.
TryGetLastAnnotation
<ProxySupportAnnotation>(out var proxySupportAnnotation) || proxySupportAnnotation.ProxyEnabled;
Dcp\DcpExecutor.cs (1)
1157
if (cr.ModelResource.
TryGetLastAnnotation
<ExplicitStartupAnnotation>(out _))
Dcp\DcpNameGenerator.cs (1)
118
if (resource.
TryGetLastAnnotation
<ContainerNameAnnotation>(out var containerNameAnnotation))
Publishing\ManifestPublishingContext.cs (1)
93
if (resource.
TryGetLastAnnotation
<ManifestPublishingCallbackAnnotation>(out var manifestPublishingCallbackAnnotation))
Aspire.Hosting.Azure.AppContainers (2)
AzureContainerAppsInfrastructure.cs (2)
45
if (r.
TryGetLastAnnotation
<ManifestPublishingCallbackAnnotation>(out var lastAnnotation) && lastAnnotation == ManifestPublishingCallbackAnnotation.Ignore)
235
if (resource.
TryGetLastAnnotation
<DockerfileBuildAnnotation>(out _))
Aspire.Hosting.Azure.Functions (5)
src\Shared\LaunchProfiles\LaunchProfileExtensions.cs (5)
16
if (!projectResource.
TryGetLastAnnotation
<IProjectMetadata>(out var projectMetadata))
23
if (projectResource.
TryGetLastAnnotation
<ExcludeLaunchProfileAnnotation>(out _))
120
if (!projectResource.
TryGetLastAnnotation
<DefaultLaunchProfileAnnotation>(out var launchProfileAnnotation))
146
if (projectResource.
TryGetLastAnnotation
<LaunchProfileAnnotation>(out var launchProfileAnnotation))
161
if (projectResource.
TryGetLastAnnotation
<ExcludeLaunchProfileAnnotation>(out _))
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusExtensions.cs (1)
37
if (infrastructure.AspireResource.
TryGetLastAnnotation
<ExistingAzureResourceAnnotation>(out var existingAnnotation))
Aspire.Hosting.Azure.Tests (29)
AzureBicepResourceTests.cs (4)
1311
Assert.True(sql.Resource.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
1405
Assert.True(sql.Resource.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
1489
Assert.True(postgres.Resource.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
1607
Assert.True(postgres.Resource.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
AzureContainerAppsTests.cs (16)
37
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
133
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
237
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
379
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
490
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
606
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
747
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
988
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1086
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1198
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1349
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1507
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1596
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1694
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1799
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1897
project.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
AzureFunctionsTests.cs (5)
36
Assert.True(functionsResource.
TryGetLastAnnotation
<EndpointAnnotation>(out var endpointAnnotation));
51
Assert.True(functionsResource.
TryGetLastAnnotation
<EndpointAnnotation>(out var endpointAnnotation));
65
Assert.True(functionsResource.
TryGetLastAnnotation
<EndpointAnnotation>(out var endpointAnnotation));
79
Assert.True(functionsResource.
TryGetLastAnnotation
<EndpointAnnotation>(out var endpointAnnotation));
93
Assert.True(functionsResource.
TryGetLastAnnotation
<EndpointAnnotation>(out var endpointAnnotation));
ExistingAzureResourceExtensionsTests.cs (4)
37
Assert.True(serviceBus.Resource.
TryGetLastAnnotation
<ExistingAzureResourceAnnotation>(out var existingAzureResourceAnnotation));
56
Assert.True(serviceBus.Resource.
TryGetLastAnnotation
<ExistingAzureResourceAnnotation>(out var existingAzureResourceAnnotation));
72
Assert.True(serviceBus.Resource.
TryGetLastAnnotation
<ExistingAzureResourceAnnotation>(out var existingAzureResourceAnnotation));
91
Assert.True(serviceBus.Resource.
TryGetLastAnnotation
<ExistingAzureResourceAnnotation>(out var existingAzureResourceAnnotation));
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
215
Assert.True(containerResource.
TryGetLastAnnotation
<ContainerMountAnnotation>(out var mountAnnotation));
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
50
if (!resource.
TryGetLastAnnotation
<DaprSidecarAnnotation>(out var daprAnnotation))
Aspire.Hosting.PostgreSQL (2)
PostgresServerResource.cs (2)
63
if (this.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation))
79
if (this.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation))
Aspire.Hosting.SqlServer (2)
SqlServerServerResource.cs (2)
47
if (this.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation))
63
if (this.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation))
Aspire.Hosting.Tests (1)
PublishAsConnectionStringTests.cs (1)
19
Assert.True(redis.Resource.
TryGetLastAnnotation
<ManifestPublishingCallbackAnnotation>(out _));