1 interface inheriting from IResourceWithEnvironment
Aspire.Hosting.Java (1)
IJavaAppResource.cs (1)
17public interface IJavaAppResource : IResourceWithEnvironment;
14 implementations of IResourceWithEnvironment
Aspire.Hosting (4)
ApplicationModel\ContainerExecutableResource.cs (1)
13: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport
ApplicationModel\ContainerResource.cs (1)
18: Resource(name), IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport, IResourceWithProbes,
ApplicationModel\ExecutableResource.cs (1)
22public class ExecutableResource : Resource, IResourceWithEnvironment, IResourceWithArgs, IResourceWithEndpoints, IResourceWithWaitSupport, IResourceWithProbes,
ApplicationModel\ProjectResource.cs (1)
25public 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)
710private sealed class TestResource(string name) : Resource(name), IResourceWithEnvironment
Aspire.Hosting.Foundry (2)
HostedAgent\AzureHostedAgentResource.cs (1)
26public 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.RabbitMQ (1)
RabbitMQServerResource.cs (1)
10public class RabbitMQServerResource : ContainerResource, IResourceWithConnectionString, IResourceWithEnvironment
Aspire.Hosting.RemoteHost.Tests (2)
AtsCapabilityScannerTests.cs (2)
766private sealed class ShadowedEnvironmentResource(string name) : Resource(name), IResourceWithEnvironment; 768private sealed class OtherEnvironmentResource(string name) : Resource(name), IResourceWithEnvironment;
Aspire.Hosting.Tests (2)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
1595private sealed class CustomResourceWithEnvironment(string name) : Resource(name), IResourceWithEnvironment
ResourceNotificationTests.cs (1)
1420IResourceWithEnvironment,
112 references to IResourceWithEnvironment
Aspire.Hosting (52)
ApplicationModel\IResourceWithCustomWithReference.cs (1)
34where TDestination : IResourceWithEnvironment;
ApplicationModel\ResourceExtensions.cs (2)
178/// Using <see cref="GetEnvironmentVariableValuesAsync(IResourceWithEnvironment, DistributedApplicationOperation)"/> inside 203public static async ValueTask<Dictionary<string, string>> GetEnvironmentVariableValuesAsync(this IResourceWithEnvironment resource,
Ats\AtsTypeMappings.cs (1)
39[assembly: AspireExport(typeof(IResourceWithEnvironment))]
Dashboard\ConsoleLogsConfigurationExtensions.cs (1)
10internal static IResourceBuilder<T> ConfigureConsoleLogs<T>(this IResourceBuilder<T> builder) where T : IResourceWithEnvironment
OtlpConfigurationExtensions.cs (3)
136public static IResourceBuilder<T> WithOtlpExporter<T>(this IResourceBuilder<T> builder) where T : IResourceWithEnvironment 151OtlpProtocol? protocol = null) where T : IResourceWithEnvironment 173public static IResourceBuilder<T> WithOtlpExporter<T>(this IResourceBuilder<T> builder, OtlpProtocol protocol) where T : IResourceWithEnvironment
ProjectResourceBuilderExtensions.cs (5)
481where TProjectResource : class, IResourceWithEnvironment, IResourceWithEndpoints, IResourceWithArgs 1084where T : IResourceWithEnvironment, IResourceWithEndpoints 1129where T : IResourceWithEnvironment, IResourceWithEndpoints 1139where T : IResourceWithEnvironment, IResourceWithEndpoints 1175where T : IResourceWithEnvironment, IResourceWithEndpoints
ResourceBuilderExtensions.cs (39)
228public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, string? value) where T : IResourceWithEnvironment 252where T : IResourceWithEnvironment 285where T : IResourceWithEnvironment 325where T : IResourceWithEnvironment 349public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, Func<string> callback) where T : IResourceWithEnvironment 366public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Action<EnvironmentCallbackContext> callback) where T : IResourceWithEnvironment 383public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Func<EnvironmentCallbackContext, Task> callback) where T : IResourceWithEnvironment 401where T : IResourceWithEnvironment 426where T : IResourceWithEnvironment 467public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, IResourceBuilder<ParameterResource> parameter) where T : IResourceWithEnvironment 494where T : IResourceWithEnvironment 522where T : IResourceWithEnvironment 531where T : IResourceWithEnvironment 540where T : IResourceWithEnvironment 569where T : IResourceWithEnvironment 880where TDestination : IResourceWithEnvironment 899where TDestination : IResourceWithEnvironment 917where TDestination : IResourceWithEnvironment 942where TDestination : IResourceWithEnvironment 956where TDestination : IResourceWithEnvironment 1038where TDestination : IResourceWithEnvironment 1056where TDestination : IResourceWithEnvironment 1080where TDestination : IResourceWithEnvironment 1107where TDestination : IResourceWithEnvironment 1204where TDestination : IResourceWithEnvironment 1236where TDestination : IResourceWithEnvironment 1257where TDestination : IResourceWithEnvironment 1305where TDestination : IResourceWithEnvironment 1381where TDestination : IResourceWithEnvironment 1391where T : IResourceWithEnvironment 1652if (env is null || builder.Resource is not IResourceWithEndpoints resourceWithEndpoints || builder.Resource is not IResourceWithEnvironment) 3989where TResource : IResourceWithEnvironment, IResourceWithArgs 4047where TResource : IResourceWithEnvironment, IResourceWithArgs 4098where TResource : IResourceWithEnvironment, IResourceWithArgs 4145where TResource : IResourceWithArgs, IResourceWithEnvironment 4175where TResource : IResourceWithEnvironment, IResourceWithArgs 4211where TResource : IResourceWithEnvironment, IResourceWithArgs 4243where TResource : IResourceWithEnvironment, IResourceWithArgs 4280where TResource : IResourceWithEnvironment, IResourceWithArgs
Aspire.Hosting.Azure (3)
AzureBicepResourceExtensions.cs (3)
85where T : IResourceWithEnvironment 100where T : IResourceWithEnvironment 118where T : IResourceWithEnvironment
Aspire.Hosting.Azure.Tests (1)
AzureFunctionsTests.cs (1)
813where TDestination : IResourceWithEnvironment
Aspire.Hosting.Blazor (3)
BlazorGatewayExtensions.cs (3)
231where TGateway : class, IResourceWithServiceDiscovery, IResourceWithEnvironment 312where TGateway : class, IResourceWithServiceDiscovery, IResourceWithEnvironment 660where TGateway : class, IResourceWithEnvironment
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)
468where TResource : IResourceWithEnvironment
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
388if (resource is IResourceWithEnvironment resourceWithEnv && resource.Annotations.OfType<OtlpExporterAnnotation>().Any())
Aspire.Hosting.Foundry (18)
HostedAgent\HostedAgentBuilderExtension.cs (17)
49where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 66where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 90where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 110where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 137where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 169where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 200where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 211where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 251where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 260where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 274where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 287where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 439where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource 467IResourceWithEnvironment target; 542private static void StampHostedAgentConsumerRoleAnnotation(IResourceWithEnvironment target, FoundryResource account) 562private static void EnsureDefaultHostedAgentEndpoint<T>(IResourceBuilder<T> builder, IResourceWithEnvironment target) 563where T : IResourceWithEndpoints, IResourceWithEnvironment, IComputeResource
Project\ProjectBuilderExtension.cs (1)
67where TDestination : IResourceWithEnvironment
Aspire.Hosting.Foundry.Tests (1)
PromptAgentTests.cs (1)
532Assert.IsAssignableFrom<IResourceWithEnvironment>(agent.Resource);
Aspire.Hosting.JavaScript.Tests (1)
AddNodeAppTests.cs (1)
587where TDestination : IResourceWithEnvironment
Aspire.Hosting.Kubernetes (1)
KubernetesEnvironmentResource.cs (1)
572if (resource is IResourceWithEnvironment resourceWithEnv && resource.Annotations.OfType<OtlpExporterAnnotation>().Any())
Aspire.Hosting.Maui (2)
MauiOtlpExtensions.cs (2)
57where T : IMauiPlatformResource, IResourceWithEnvironment 251where 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)
747where TDestination : IResourceWithEnvironment
Aspire.Hosting.Qdrant (2)
QdrantBuilderExtensions.cs (2)
148where TDestination : IResourceWithEnvironment 162where TDestination : IResourceWithEnvironment
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (1)
356where TDestination : IResourceWithEnvironment
QdrantPublicApiTests.cs (1)
82IResourceBuilder<IResourceWithEnvironment> builder = null!;
Aspire.Hosting.Radius (1)
Publishing\RadiusInfrastructureBuilder.cs (1)
1117if (resource is not IResourceWithEnvironment)
Aspire.Hosting.RemoteHost.Tests (1)
AtsCapabilityScannerTests.cs (1)
856where T : IResourceWithEnvironment