46 references to IsContainer
Aspire.Hosting (13)
ApplicationModel\DistributedApplicationModelExtensions.cs (1)
26
if (!r.
IsContainer
() && !r.IsEmulator() && r is not ProjectResource)
ApplicationModel\HostUrl.cs (1)
65
var targetEndpoint = model.Resources.Where(r => !r.
IsContainer
())
ApplicationModel\ResourceExtensions.cs (2)
512
return resource.
IsContainer
() ? KnownNetworkIdentifiers.DefaultAspireContainerNetwork : KnownNetworkIdentifiers.LocalhostNetwork;
517
return resource.
IsContainer
() ? [KnownNetworkIdentifiers.DefaultAspireContainerNetwork, KnownNetworkIdentifiers.LocalhostNetwork] : [KnownNetworkIdentifiers.LocalhostNetwork];
Dcp\DcpExecutor.cs (4)
1146
var containerResources = _model.Resources.Where(mr => mr.
IsContainer
());
1239
var containers = _model.Resources.Where(r => r.
IsContainer
());
2370
if (modelResource.
IsContainer
())
2962
if (resource is IResourceWithEndpoints rwe && !resource.
IsContainer
())
Dcp\DcpHost.cs (1)
81
if (!_applicationModel.Resources.Any(c => c.
IsContainer
()))
Dcp\DcpNameGenerator.cs (1)
35
if (resource.
IsContainer
())
Dcp\OtlpEndpointReferenceGatherer.cs (1)
24
if (!resource.
IsContainer
() || !resource.TryGetLastAnnotation<OtlpExporterAnnotation>(out var oea))
Orchestrator\ApplicationOrchestrator.cs (1)
713
resource.
IsContainer
() ||
ResourceBuilderExtensions.cs (1)
824
if (builder.Resource.
IsContainer
())
Aspire.Hosting.Azure (3)
AzureResourcePreparer.cs (2)
60
if (resource.IsExcludedFromPublish() || resource.
IsContainer
() || resource.IsEmulator())
144
if (azureReference.
IsContainer
() || azureReference.IsEmulator())
Provisioning\Provisioners\AzureProvisioner.cs (1)
202
if (bicepResource.
IsContainer
() || bicepResource.IsEmulator())
Aspire.Hosting.Azure.AppConfiguration (1)
AzureAppConfigurationResource.cs (1)
26
public bool IsEmulator => this.
IsContainer
();
Aspire.Hosting.Azure.AppService (1)
AzureAppServiceInfrastructure.cs (1)
54
if (resource is not ProjectResource && !(resource.
IsContainer
() && resource.TryGetAnnotationsOfType<DockerfileBuildAnnotation>(out _)))
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBResource.cs (1)
87
public bool IsEmulator => this.
IsContainer
();
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsResource.cs (1)
58
public bool IsEmulator => this.
IsContainer
();
Aspire.Hosting.Azure.KeyVault (1)
AzureKeyVaultResource.cs (1)
42
public bool IsEmulator => this.
IsContainer
();
Aspire.Hosting.Azure.Kusto (1)
AzureKustoClusterResource.cs (1)
33
public bool IsEmulator => this.
IsContainer
();
Aspire.Hosting.Azure.PostgreSQL (1)
AzurePostgresExtensions.cs (1)
311
if (builder.Resource.
IsContainer
())
Aspire.Hosting.Azure.Redis (2)
AzureManagedRedisExtensions.cs (1)
143
if (builder.Resource.
IsContainer
())
AzureRedisExtensions.cs (1)
211
if (builder.Resource.
IsContainer
())
Aspire.Hosting.Azure.ServiceBus (1)
AzureServiceBusResource.cs (1)
48
public bool IsEmulator => this.
IsContainer
();
Aspire.Hosting.Azure.SignalR (1)
AzureSignalRResource.cs (1)
25
public bool IsEmulator => this.
IsContainer
();
Aspire.Hosting.Azure.Storage (1)
AzureStorageResource.cs (1)
73
public bool IsEmulator => this.
IsContainer
();
Aspire.Hosting.Azure.Tests (15)
AzureCosmosDBExtensionsTests.cs (1)
274
Assert.True(cosmos.Resource.
IsContainer
());
AzureManagedRedisExtensionsTests.cs (2)
60
Assert.True(redis.Resource.
IsContainer
(), "The resource should now be a container resource.");
96
Assert.True(redis.Resource.
IsContainer
(), "The resource should now be a container resource.");
AzurePostgresExtensionsTests.cs (2)
133
Assert.True(postgres.Resource.
IsContainer
(), "The resource should now be a container resource.");
191
Assert.True(postgres.Resource.
IsContainer
(), "The resource should now be a container resource.");
AzureRedisExtensionsTests.cs (3)
104
Assert.True(redis.Resource.
IsContainer
(), "The resource should now be a container resource.");
140
Assert.True(redis.Resource.
IsContainer
(), "The resource should now be a container resource.");
244
Assert.True(redis.Resource.
IsContainer
());
AzureSqlExtensionsTests.cs (2)
92
Assert.True(sql.Resource.
IsContainer
(), "The resource should now be a container resource.");
158
Assert.True(sql.Resource.
IsContainer
(), "The resource should now be a container resource.");
AzureStorageExtensionsTests.cs (5)
187
Assert.True(storage.Resource.
IsContainer
());
235
Assert.True(storage.Resource.
IsContainer
());
293
Assert.True(storage.Resource.
IsContainer
());
341
Assert.True(storage.Resource.
IsContainer
());
413
Assert.True(storage.Resource.
IsContainer
());
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
190
if (waitAnnotation.Resource is ProjectResource || waitAnnotation.Resource.
IsContainer
())
Aspire.Hosting.Tests (1)
EndpointReferenceTests.cs (1)
345
(string containerHost, int containerPort) = destination.
IsContainer
()
Stress.AppHost (1)
Program.cs (1)
172
.Where(r => r.
IsContainer
() || r is ProjectResource || r is ExecutableResource)