7 instantiations of ContainerImageAnnotation
Aspire.Hosting (1)
ContainerResourceBuilderExtensions.cs (1)
182var containerImageAnnotation = new ContainerImageAnnotation() { Image = image, Tag = tag };
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
118.WithAnnotation(new ContainerImageAnnotation
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
132.WithAnnotation(new ContainerImageAnnotation
Aspire.Hosting.Azure.Storage (1)
AzureStorageExtensions.cs (1)
99.WithAnnotation(new ContainerImageAnnotation
Aspire.Hosting.Containers.Tests (3)
ContainerImageAnnotationTests.cs (2)
14var annotation = new ContainerImageAnnotation() 29var annotation = new ContainerImageAnnotation()
ContainerResourceBuilderTests.cs (1)
46container.Resource.Annotations.Add(new ContainerImageAnnotation { Image = "another-image" });
108 references to ContainerImageAnnotation
Aspire.Hosting (10)
ApplicationModel\ResourceExtensions.cs (1)
279if (resource.Annotations.OfType<ContainerImageAnnotation>().LastOrDefault() is { } imageAnnotation)
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
65r => r.Annotations.OfType<ContainerImageAnnotation>()
ContainerResourceBuilderExtensions.cs (5)
131if (builder.Resource.Annotations.OfType<ContainerImageAnnotation>().LastOrDefault() is { } existingImageAnnotation) 151if (builder.Resource.Annotations.OfType<ContainerImageAnnotation>().LastOrDefault() is { } existingImageAnnotation) 174if (builder.Resource.Annotations.OfType<ContainerImageAnnotation>().LastOrDefault() is { } existingImageAnnotation) 182var containerImageAnnotation = new ContainerImageAnnotation() { Image = image, Tag = tag }; 199if (builder.Resource.Annotations.OfType<ContainerImageAnnotation>().LastOrDefault() is { } existingImageAnnotation)
ContainerResourceExtensions.cs (2)
24if (resource.Annotations.OfType<ContainerImageAnnotation>().Any()) 40return resource.Annotations.OfType<ContainerImageAnnotation>().Any();
Publishing\ManifestPublishingContext.cs (1)
248/// <exception cref="DistributedApplicationException">Thrown if the container resource does not contain a <see cref="ContainerImageAnnotation"/>.</exception>
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
80if (builder.Resource.Annotations.OfType<ContainerImageAnnotation>().SingleOrDefault() is { } containerAnnotation)
Aspire.Hosting.Azure.Redis (1)
AzureRedisExtensions.cs (1)
70if (builder.Resource.Annotations.OfType<ContainerImageAnnotation>().SingleOrDefault() is { } containerAnnotation)
Aspire.Hosting.Azure.Sql (1)
AzureSqlExtensions.cs (1)
38if (builder.Resource.Annotations.OfType<ContainerImageAnnotation>().SingleOrDefault() is { } containerAnnotation)
Aspire.Hosting.Azure.Tests (4)
AzureEventHubsExtensionsTests.cs (2)
202var containerImageAnnotation = eventHubs.Resource.Annotations.OfType<ContainerImageAnnotation>().FirstOrDefault();
AzureResourceExtensionsTests.cs (2)
172var containerImageAnnotation = cosmos.Resource.Annotations.OfType<ContainerImageAnnotation>().FirstOrDefault();
Aspire.Hosting.Containers.Tests (16)
ContainerImageAnnotationTests.cs (2)
14var annotation = new ContainerImageAnnotation() 29var annotation = new ContainerImageAnnotation()
ContainerResourceBuilderTests.cs (10)
17Assert.Equal("redis-stack", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Image); 25Assert.Equal("redis-stack", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Image); 26Assert.Equal("1.0.0", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Tag); 37Assert.Equal("new-image", container.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Image); 38Assert.Equal("latest", container.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Tag); 49Assert.Equal("new-image", container.Resource.Annotations.OfType<ContainerImageAnnotation>().Last().Image); 50Assert.Equal("latest", container.Resource.Annotations.OfType<ContainerImageAnnotation>().Last().Tag); 58Assert.Equal("7.1", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Tag); 66Assert.Equal("myregistry.azurecr.io", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().Registry); 74Assert.Equal("42b5c726e719639fcc1e9dbc13dd843f567dcd37911d0e1abb9f47f2cc1c95cd", redis.Resource.Annotations.OfType<ContainerImageAnnotation>().Single().SHA256);
ContainerResourceTests.cs (4)
27var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 46var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.Elasticsearch.Tests (4)
AddElasticsearchTests.cs (4)
50var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 112var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.Garnet.Tests (4)
AddGarnetTests.cs (4)
36var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 64var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.Kafka.Tests (2)
AddKafkaTests.cs (2)
49var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.Keycloak.Tests (2)
KeycloakResourceBuilderTests.cs (2)
38var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.Milvus.Tests (4)
AddMilvusTests.cs (4)
32var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 63var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.MongoDB.Tests (6)
AddMongoDBTests.cs (6)
38var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 66var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 119var containerAnnotation = Assert.Single(resource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.MySql.Tests (4)
AddMySqlTests.cs (4)
49var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 89var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.Nats.Tests (4)
AddNatsTests.cs (4)
108var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 154var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.Oracle.Tests (6)
AddOracleTests.cs (6)
48var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 88var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 171var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.PostgreSQL.Tests (10)
AddPostgresTests.cs (10)
58var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 113var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 205var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 409var containerAnnotation = Assert.Single(resource.Annotations.OfType<ContainerImageAnnotation>()); 436var imageAnnotation = container.Annotations.OfType<ContainerImageAnnotation>().Single();
Aspire.Hosting.Qdrant.Tests (6)
AddQdrantTests.cs (6)
51var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 90var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 124var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.RabbitMQ (2)
RabbitMQBuilderExtensions.cs (2)
142var containerAnnotations = builder.Resource.Annotations.OfType<ContainerImageAnnotation>().ToList(); 154var annotation = containerAnnotations[0];
Aspire.Hosting.RabbitMQ.Tests (4)
AddRabbitMQTests.cs (4)
85var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 141var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.Redis.Tests (8)
AddRedisTests.cs (8)
45var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 73var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 154var containerAnnotation = Assert.Single(resource.Annotations.OfType<ContainerImageAnnotation>()); 172var containerAnnotation = Assert.Single(resource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.SqlServer.Tests (2)
AddSqlServerTests.cs (2)
58var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Hosting.Testing.Tests (2)
TestingBuilderTests.cs (2)
97var containerImageAnnotation = resource.Annotations.OfType<ContainerImageAnnotation>().FirstOrDefault();
Aspire.Hosting.Valkey.Tests (4)
AddValkeyTests.cs (4)
36var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>()); 64var containerAnnotation = Assert.Single(containerResource.Annotations.OfType<ContainerImageAnnotation>());
Aspire.Playground.Tests (1)
Infrastructure\DistributedApplicationTestFactory.cs (1)
63.SelectMany(r => r.Annotations.OfType<ContainerImageAnnotation>()