9 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)
24public class ProjectResource : Resource, IResourceWithEnvironment, IResourceWithArgs, IResourceWithServiceDiscovery, IResourceWithWaitSupport, IResourceWithProbes,
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
214private sealed class TestResource(string name) : Resource(name), IResourceWithEnvironment
Aspire.Hosting.Foundry (1)
HostedAgent\AzureHostedAgentResource.cs (1)
18public class AzureHostedAgentResource : Resource, IComputeResource, IResourceWithEnvironment
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.Tests (1)
ResourceNotificationTests.cs (1)
724IResourceWithEnvironment,
74 references to IResourceWithEnvironment
Aspire.Hosting (39)
ApplicationModel\IResourceWithCustomWithReference.cs (1)
37where TDestination : IResourceWithEnvironment;
ApplicationModel\ResourceExtensions.cs (2)
168/// Using <see cref="GetEnvironmentVariableValuesAsync(IResourceWithEnvironment, DistributedApplicationOperation)"/> inside 193public static async ValueTask<Dictionary<string, string>> GetEnvironmentVariableValuesAsync(this IResourceWithEnvironment resource,
Ats\AtsTypeMappings.cs (1)
34[assembly: AspireExport(typeof(IResourceWithEnvironment))]
Dashboard\ConsoleLogsConfigurationExtensions.cs (1)
10internal static IResourceBuilder<T> ConfigureConsoleLogs<T>(this IResourceBuilder<T> builder) where T : IResourceWithEnvironment
OtlpConfigurationExtensions.cs (2)
126public static IResourceBuilder<T> WithOtlpExporter<T>(this IResourceBuilder<T> builder) where T : IResourceWithEnvironment 148public static IResourceBuilder<T> WithOtlpExporter<T>(this IResourceBuilder<T> builder, OtlpProtocol protocol) where T : IResourceWithEnvironment
ResourceBuilderExtensions.cs (32)
36public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, string? value) where T : IResourceWithEnvironment 55where T : IResourceWithEnvironment 95where T : IResourceWithEnvironment 119public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, Func<string> callback) where T : IResourceWithEnvironment 136public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Action<EnvironmentCallbackContext> callback) where T : IResourceWithEnvironment 152public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Func<EnvironmentCallbackContext, Task> callback) where T : IResourceWithEnvironment 170where T : IResourceWithEnvironment 195where T : IResourceWithEnvironment 236public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, IResourceBuilder<ParameterResource> parameter) where T : IResourceWithEnvironment 263where T : IResourceWithEnvironment 289where T : IResourceWithEnvironment 545where TDestination : IResourceWithEnvironment 559where TDestination : IResourceWithEnvironment 634where TDestination : IResourceWithEnvironment 652where TDestination : IResourceWithEnvironment 676where TDestination : IResourceWithEnvironment 703where TDestination : IResourceWithEnvironment 788where TDestination : IResourceWithEnvironment 809where TDestination : IResourceWithEnvironment 830where TDestination : IResourceWithEnvironment 883where TDestination : IResourceWithEnvironment 959where TDestination : IResourceWithEnvironment 969where T : IResourceWithEnvironment 1114if (env is not null && builder.Resource is IResourceWithEndpoints resourceWithEndpoints and IResourceWithEnvironment) 2539where TResource : IResourceWithEnvironment, IResourceWithArgs 2596where TResource : IResourceWithEnvironment, IResourceWithArgs 2645where TResource : IResourceWithEnvironment, IResourceWithArgs 2692where TResource : IResourceWithArgs, IResourceWithEnvironment 2721where TResource : IResourceWithEnvironment, IResourceWithArgs 2757where TResource : IResourceWithEnvironment, IResourceWithArgs 2788where TResource : IResourceWithEnvironment, IResourceWithArgs 2826where TResource : IResourceWithEnvironment, IResourceWithArgs
Aspire.Hosting.Azure (3)
AzureBicepResourceExtensions.cs (3)
83where T : IResourceWithEnvironment 103where T : IResourceWithEnvironment 121where T : IResourceWithEnvironment
Aspire.Hosting.Azure.Tests (1)
AzureFunctionsTests.cs (1)
813where TDestination : IResourceWithEnvironment
Aspire.Hosting.CodeGeneration.Go.Tests (3)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (3)
78Action<TestCallbackContext> callback) where T : IResourceWithEnvironment 436Func<TestEnvironmentContext, Task> callback) where T : IResourceWithEnvironment 597IReadOnlyDictionary<string, string> variables) where T : IResourceWithEnvironment
Aspire.Hosting.CodeGeneration.Java.Tests (3)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (3)
78Action<TestCallbackContext> callback) where T : IResourceWithEnvironment 436Func<TestEnvironmentContext, Task> callback) where T : IResourceWithEnvironment 597IReadOnlyDictionary<string, string> variables) where T : IResourceWithEnvironment
Aspire.Hosting.CodeGeneration.Python.Tests (3)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (3)
78Action<TestCallbackContext> callback) where T : IResourceWithEnvironment 436Func<TestEnvironmentContext, Task> callback) where T : IResourceWithEnvironment 597IReadOnlyDictionary<string, string> variables) where T : IResourceWithEnvironment
Aspire.Hosting.CodeGeneration.Rust.Tests (3)
tests\Aspire.Hosting.CodeGeneration.TypeScript.Tests\TestTypes\TestExtensions.cs (3)
78Action<TestCallbackContext> callback) where T : IResourceWithEnvironment 436Func<TestEnvironmentContext, Task> callback) where T : IResourceWithEnvironment 597IReadOnlyDictionary<string, string> variables) where T : IResourceWithEnvironment
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
TestTypes\TestExtensions.cs (3)
78Action<TestCallbackContext> callback) where T : IResourceWithEnvironment 436Func<TestEnvironmentContext, Task> callback) where T : IResourceWithEnvironment 597IReadOnlyDictionary<string, string> variables) where T : IResourceWithEnvironment
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
466where TResource : IResourceWithEnvironment
Aspire.Hosting.Docker (1)
DockerComposeInfrastructure.cs (1)
114if (resource is IResourceWithEnvironment resourceWithEnv && resource.Annotations.OfType<OtlpExporterAnnotation>().Any())
Aspire.Hosting.Foundry (1)
Project\ProjectBuilderExtension.cs (1)
91where TDestination : IResourceWithEnvironment
Aspire.Hosting.JavaScript.Tests (1)
AddNodeAppTests.cs (1)
584where TDestination : IResourceWithEnvironment
Aspire.Hosting.Maui (2)
MauiOtlpExtensions.cs (2)
55where T : IMauiPlatformResource, IResourceWithEnvironment 140where 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)
384where T : IResourceWithEnvironment, IResourceWithEndpoints 393where T : IResourceWithEnvironment, IResourceWithEndpoints
ProviderConfiguration.cs (1)
36public 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)
144where TDestination : IResourceWithEnvironment 158where TDestination : IResourceWithEnvironment
Aspire.Hosting.Qdrant.Tests (2)
AddQdrantTests.cs (1)
356where TDestination : IResourceWithEnvironment
QdrantPublicApiTests.cs (1)
82IResourceBuilder<IResourceWithEnvironment> builder = null!;