1 interface inheriting from IResourceWithEnvironment
Aspire.Hosting.Java (1)
IJavaAppResource.cs (1)
17public interface IJavaAppResource : IResourceWithEnvironment;
16 implementations of IResourceWithEnvironment
Aspire.Hosting (4)
ApplicationModel\ContainerExecutableResource.cs (1)
13: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport
ApplicationModel\ContainerResource.cs (1)
16: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport, IResourceWithProbes,
ApplicationModel\ExecutableResource.cs (1)
20public class ExecutableResource : Resource, IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport, IResourceWithProbes,
ApplicationModel\ProjectResource.cs (1)
14public class ProjectResource : Resource, IResourceWithEnvironment, IResourceWithArgs, IResourceWithServiceDiscovery, IResourceWithWaitSupport, IResourceWithProbes,
Aspire.Hosting.Blazor (1)
Resources\BlazorWasmAppResource.cs (1)
20public sealed class BlazorWasmAppResource(string name, string projectPath) : Resource(name), IResourceWithEnvironment, IResourceWithParent
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
892private sealed class TestResource(string name) : Resource(name), IResourceWithEnvironment
Aspire.Hosting.Foundry (2)
HostedAgent\AzureHostedAgentResource.cs (1)
28public class AzureHostedAgentResource : Resource, IResourceWithEnvironment
PromptAgent\AzurePromptAgentResource.cs (1)
33public class AzurePromptAgentResource : Resource, IResourceWithEnvironment, IResourceWithConnectionString
Aspire.Hosting.Kafka (1)
KafkaServerResource.cs (1)
13public class KafkaServerResource(string name) : ContainerResource(name), IResourceWithConnectionString, IResourceWithEnvironment
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPersistentVolumeRunModeTests.cs (1)
503private sealed class TestComputeResource(string name) : Resource(name), IComputeResource, IResourceWithEnvironment;
Aspire.Hosting.RabbitMQ (1)
RabbitMQServerResource.cs (1)
10public class RabbitMQServerResource : ContainerResource, IResourceWithConnectionString, IResourceWithEnvironment
Aspire.Hosting.RemoteHost.Tests (2)
AtsCapabilityScannerTests.cs (2)
890private sealed class ShadowedEnvironmentResource(string name) : Resource(name), IResourceWithEnvironment; 892private sealed class OtherEnvironmentResource(string name) : Resource(name), IResourceWithEnvironment;
Aspire.Hosting.Tests (3)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
1596private sealed class CustomResourceWithEnvironment(string name) : Resource(name), IResourceWithEnvironment
ResourceNotificationTests.cs (1)
1711IResourceWithEnvironment,
WithVolumeTests.cs (1)
307private sealed class TestComputeResource(string name) : Resource(name), IComputeResource, IResourceWithEnvironment
142 references to IResourceWithEnvironment
Aspire.Hosting (57)
ApplicationModel\IResourceWithCustomWithReference.cs (1)
34where TDestination : IResourceWithEnvironment;
ApplicationModel\ResourceExtensions.cs (2)
179/// Using <see cref="GetEnvironmentVariableValuesAsync(IResourceWithEnvironment, DistributedApplicationOperation)"/> inside 204public static async ValueTask<Dictionary<string, string>> GetEnvironmentVariableValuesAsync(this IResourceWithEnvironment resource,
Ats\AtsTypeMappings.cs (1)
39[assembly: AspireExport(typeof(IResourceWithEnvironment))]
Ats\CoreExports.cs (1)
149where T : IComputeResource, IResourceWithEnvironment
Dashboard\ConsoleLogsConfigurationExtensions.cs (1)
10internal static IResourceBuilder<T> ConfigureConsoleLogs<T>(this IResourceBuilder<T> builder) where T : IResourceWithEnvironment
OtlpConfigurationExtensions.cs (4)
68OtlpProtocol protocol) where T : IResourceWithEnvironment 215public static IResourceBuilder<T> WithOtlpExporter<T>(this IResourceBuilder<T> builder) where T : IResourceWithEnvironment 230OtlpProtocol? protocol = null) where T : IResourceWithEnvironment 252public static IResourceBuilder<T> WithOtlpExporter<T>(this IResourceBuilder<T> builder, OtlpProtocol protocol) where T : IResourceWithEnvironment
ProjectResourceBuilderExtensions.cs (5)
501where TProjectResource : class, IResourceWithEnvironment, IResourceWithEndpoints, IResourceWithArgs 1131where T : IResourceWithEnvironment, IResourceWithEndpoints 1176where T : IResourceWithEnvironment, IResourceWithEndpoints 1186where T : IResourceWithEnvironment, IResourceWithEndpoints 1222where T : IResourceWithEnvironment, IResourceWithEndpoints
ResourceBuilderExtensions.cs (40)
244public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, string? value) where T : IResourceWithEnvironment 268where T : IResourceWithEnvironment 301where T : IResourceWithEnvironment 341where T : IResourceWithEnvironment 365public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, Func<string> callback) where T : IResourceWithEnvironment 382public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Action<EnvironmentCallbackContext> callback) where T : IResourceWithEnvironment 399public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Func<EnvironmentCallbackContext, Task> callback) where T : IResourceWithEnvironment 417where T : IResourceWithEnvironment 442where T : IResourceWithEnvironment 483public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, IResourceBuilder<ParameterResource> parameter) where T : IResourceWithEnvironment 510where T : IResourceWithEnvironment 538where T : IResourceWithEnvironment 547where T : IResourceWithEnvironment 556where T : IResourceWithEnvironment 585where T : IResourceWithEnvironment 1131where TDestination : IResourceWithEnvironment 1150where TDestination : IResourceWithEnvironment 1168where TDestination : IResourceWithEnvironment 1193where TDestination : IResourceWithEnvironment 1207where TDestination : IResourceWithEnvironment 1289where TDestination : IResourceWithEnvironment 1307where TDestination : IResourceWithEnvironment 1331where TDestination : IResourceWithEnvironment 1364where TDestination : IResourceWithEnvironment 1516where TDestination : IResourceWithEnvironment 1548where TDestination : IResourceWithEnvironment 1569where TDestination : IResourceWithEnvironment 1617where TDestination : IResourceWithEnvironment 1693where TDestination : IResourceWithEnvironment 1703where T : IResourceWithEnvironment 1964if (env is null || builder.Resource is not IResourceWithEndpoints resourceWithEndpoints || builder.Resource is not IResourceWithEnvironment) 4360where TResource : IResourceWithEnvironment, IResourceWithArgs 4418where TResource : IResourceWithEnvironment, IResourceWithArgs 4469where TResource : IResourceWithEnvironment, IResourceWithArgs 4516where TResource : IResourceWithArgs, IResourceWithEnvironment 4538where TResource : IResourceWithArgs, IResourceWithEnvironment 4583where TResource : IResourceWithEnvironment, IResourceWithArgs 4619where TResource : IResourceWithEnvironment, IResourceWithArgs 4651where TResource : IResourceWithEnvironment, IResourceWithArgs 4688where TResource : IResourceWithEnvironment, IResourceWithArgs
VolumeResourceBuilderExtensions.cs (2)
45where T : IComputeResource, IResourceWithEnvironment 79if (builder.Resource is not IResourceWithEnvironment)
Aspire.Hosting.Azure (3)
AzureBicepResourceExtensions.cs (3)
85where T : IResourceWithEnvironment 100where T : IResourceWithEnvironment 118where T : IResourceWithEnvironment
Aspire.Hosting.Azure.ConnectorNamespace (1)
AzureConnectorNamespaceExtensions.cs (1)
317where TDestination : IResourceWithEnvironment
Aspire.Hosting.Azure.EntraId (2)
EntraIdResourceExtensions.cs (2)
2105where T : IResourceWithEnvironment 2136where T : IResourceWithEnvironment
Aspire.Hosting.Azure.EntraId.Tests (5)
EntraIdProvisioningTests.cs (1)
1391IResourceBuilder<IResourceWithEnvironment> consumer = resourceType switch
EntraIdResourceBuilderTests.cs (4)
791IResourceBuilder<IResourceWithEnvironment> project = appBuilder.AddResource(new ProjectResource("api")); 879IResourceBuilder<IResourceWithEnvironment> container = separator == "__" 883IResourceBuilder<IResourceWithEnvironment> unprefixed = separator == "__" 1213IResourceBuilder<IResourceWithEnvironment> consumer = dotnet
Aspire.Hosting.Azure.Functions (2)
AzureFunctionsProjectResourceExtensions.cs (2)
636where TDestination : IResourceWithEnvironment 653where TDestination : IResourceWithEnvironment
Aspire.Hosting.Azure.Tests (2)
AzureConnectorNamespaceTests.cs (1)
850where TDestination : IResourceWithEnvironment
AzureFunctionsTests.cs (1)
1136where TDestination : IResourceWithEnvironment
Aspire.Hosting.Blazor (11)
BlazorGatewayExtensions.cs (3)
293where TGateway : class, IResourceWithServiceDiscovery, IResourceWithEnvironment 374where TGateway : class, IResourceWithServiceDiscovery, IResourceWithEnvironment 812where TGateway : class, IResourceWithEnvironment
BlazorHostedExtensions.cs (8)
53where T : class, IDotnetProgramResource, IResourceWithEnvironment, IResourceWithServiceDiscovery 60where T : class, IDotnetProgramResource, IResourceWithEnvironment, IResourceWithServiceDiscovery 102where T : class, IDotnetProgramResource, IResourceWithEnvironment, IResourceWithServiceDiscovery 108where T : class, IDotnetProgramResource, IResourceWithEnvironment, IResourceWithServiceDiscovery 143where T : class, IDotnetProgramResource, IResourceWithEnvironment, IResourceWithServiceDiscovery 149where T : class, IDotnetProgramResource, IResourceWithEnvironment, IResourceWithServiceDiscovery 160where T : class, IDotnetProgramResource, IResourceWithEnvironment, IResourceWithServiceDiscovery 376where T : class, IDotnetProgramResource, IResourceWithEnvironment, IResourceWithServiceDiscovery
Aspire.Hosting.Blazor.Tests (1)
AddBlazorWasmAppTests.cs (1)
69Assert.IsAssignableFrom<IResourceWithEnvironment>(resource);
Aspire.Hosting.CodeGeneration.Go.Tests (3)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (3)
144Action<TestCallbackContext> callback) where T : IResourceWithEnvironment 508Func<TestEnvironmentContext, Task> callback) where T : IResourceWithEnvironment 696IReadOnlyDictionary<string, string> variables) where T : IResourceWithEnvironment
Aspire.Hosting.CodeGeneration.Java.Tests (3)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (3)
144Action<TestCallbackContext> callback) where T : IResourceWithEnvironment 508Func<TestEnvironmentContext, Task> callback) where T : IResourceWithEnvironment 696IReadOnlyDictionary<string, string> variables) where T : IResourceWithEnvironment
Aspire.Hosting.CodeGeneration.Python.Tests (3)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (3)
144Action<TestCallbackContext> callback) where T : IResourceWithEnvironment 508Func<TestEnvironmentContext, Task> callback) where T : IResourceWithEnvironment 696IReadOnlyDictionary<string, string> variables) where T : IResourceWithEnvironment
Aspire.Hosting.CodeGeneration.Rust.Tests (3)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (3)
144Action<TestCallbackContext> callback) where T : IResourceWithEnvironment 508Func<TestEnvironmentContext, Task> callback) where T : IResourceWithEnvironment 696IReadOnlyDictionary<string, string> variables) where T : IResourceWithEnvironment
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
TestTypes\TestExtensions.cs (3)
144Action<TestCallbackContext> callback) where T : IResourceWithEnvironment 508Func<TestEnvironmentContext, Task> callback) where T : IResourceWithEnvironment 696IReadOnlyDictionary<string, string> variables) where T : IResourceWithEnvironment
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
499where TResource : IResourceWithEnvironment
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
388if (resource is IResourceWithEnvironment resourceWithEnv &&
Aspire.Hosting.Foundry (19)
HostedAgent\HostedAgentBuilderExtension.cs (18)
51where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 68where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 92where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 112where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 139where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 171where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 202where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 213where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 253where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 262where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 276where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 289where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 441where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 469IResourceWithEnvironment target; 480resource is IResourceWithEnvironment programTarget) 546private static void StampHostedAgentConsumerRoleAnnotation(IResourceWithEnvironment target, FoundryResource account) 566private static void EnsureDefaultHostedAgentEndpoint<T>(IResourceBuilder<T> builder, IResourceWithEnvironment target) 567where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource
Project\ProjectBuilderExtension.cs (1)
67where TDestination : IResourceWithEnvironment
Aspire.Hosting.Foundry.Tests (1)
PromptAgentTests.cs (1)
620Assert.IsAssignableFrom<IResourceWithEnvironment>(agent.Resource);
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
1125where TResource : IResourceWithEnvironment
Aspire.Hosting.JavaScript.Tests (1)
AddNodeAppTests.cs (1)
585where TDestination : IResourceWithEnvironment
Aspire.Hosting.Kubernetes (3)
KubernetesEnvironmentResource.cs (1)
553if (resource is IResourceWithEnvironment resourceWithEnv &&
KubernetesPersistentVolumeExtensions.cs (2)
458where T : IComputeResource, IResourceWithEnvironment 506if (builder.Resource is not IResourceWithEnvironment)
Aspire.Hosting.Maui (2)
MauiOtlpExtensions.cs (2)
65where T : IMauiPlatformResource, IResourceWithEnvironment 534where T : IMauiPlatformResource, IResourceWithEnvironment
Aspire.Hosting.Orleans (5)
IProviderConfiguration.cs (1)
19void ConfigureResource<T>(IResourceBuilder<T> resourceBuilder, string configSectionPath) where T : IResourceWithEnvironment;
OrleansServiceClientExtensions.cs (1)
25where T : IResourceWithEnvironment, IResourceWithEndpoints
OrleansServiceExtensions.cs (2)
417where T : IResourceWithEnvironment, IResourceWithEndpoints 426where T : IResourceWithEnvironment, IResourceWithEndpoints
ProviderConfiguration.cs (1)
61public void ConfigureResource<T>(IResourceBuilder<T> resourceBuilder, string configurationSectionName) where T : IResourceWithEnvironment
Aspire.Hosting.PostgreSQL.Tests (1)
AddPostgresTests.cs (1)
769where TDestination : IResourceWithEnvironment
Aspire.Hosting.Qdrant (2)
QdrantBuilderExtensions.cs (2)
150where TDestination : IResourceWithEnvironment 168where TDestination : IResourceWithEnvironment
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (1)
447where TDestination : IResourceWithEnvironment
QdrantPublicApiTests.cs (1)
82IResourceBuilder<IResourceWithEnvironment> builder = null!;
Aspire.Hosting.Radius (2)
Publishing\RadiusInfrastructureBuilder.cs (2)
3177candidate is IResourceWithEnvironment && 3648if (resource is not IResourceWithEnvironment)
Aspire.Hosting.RemoteHost.Tests (1)
AtsCapabilityScannerTests.cs (1)
980where T : IResourceWithEnvironment
Aspire.Hosting.TestUtilities (1)
Utils\OtlpExporterActivationTestExtensions.cs (1)
12where TResource : IResourceWithEnvironment