45 references to TryGetLastAnnotation
Aspire.Hosting (5)
ApplicationModel\CommandsConfigurationExtensions.cs (1)
17
if (resource.
TryGetLastAnnotation
<ExcludeLifecycleCommandsAnnotation>(out _))
ApplicationModel\ResourceExtensions.cs (1)
330
if (resource.
TryGetLastAnnotation
<ContainerLifetimeAnnotation>(out var lifetimeAnnotation))
Dcp\ApplicationExecutor.cs (1)
1944
if (resource.
TryGetLastAnnotation
<ContainerNameAnnotation>(out var containerNameAnnotation))
Dcp\DcpNameGenerator.cs (1)
90
if (resource.
TryGetLastAnnotation
<ContainerNameAnnotation>(out var containerNameAnnotation))
Publishing\ManifestPublishingContext.cs (1)
92
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.Tests (23)
AzureBicepResourceTests.cs (4)
1108
Assert.True(sql.Resource.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
1202
Assert.True(sql.Resource.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
1286
Assert.True(postgres.Resource.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
1404
Assert.True(postgres.Resource.
TryGetLastAnnotation
<ConnectionStringRedirectAnnotation>(out var connectionStringAnnotation));
AzureContainerAppsTests.cs (14)
37
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
133
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
237
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
381
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
522
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
777
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
875
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
987
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1138
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1296
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1385
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1483
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1588
container.
TryGetLastAnnotation
<DeploymentTargetAnnotation>(out var target);
1686
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));
Aspire.Hosting.Containers.Tests (1)
ContainerResourceTests.cs (1)
175
Assert.True(containerResource.
TryGetLastAnnotation
<ContainerMountAnnotation>(out var mountAnnotation));
Aspire.Hosting.Dapr (1)
DaprDistributedApplicationLifecycleHook.cs (1)
49
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 (4)
PublishAsConnectionStringTests.cs (1)
19
Assert.True(redis.Resource.
TryGetLastAnnotation
<ManifestPublishingCallbackAnnotation>(out _));
PublishAsDockerfileTests.cs (3)
20
Assert.True(frontend.Resource.
TryGetLastAnnotation
<ManifestPublishingCallbackAnnotation>(out _));
55
Assert.True(frontend.Resource.
TryGetLastAnnotation
<ManifestPublishingCallbackAnnotation>(out _));
93
Assert.True(frontend.Resource.
TryGetLastAnnotation
<ManifestPublishingCallbackAnnotation>(out _));