8 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.Kafka (1)
KafkaServerResource.cs (1)
12public class KafkaServerResource(string name) : ContainerResource(name), IResourceWithConnectionString, IResourceWithEnvironment
Aspire.Hosting.RabbitMQ (1)
RabbitMQServerResource.cs (1)
9public class RabbitMQServerResource : ContainerResource, IResourceWithConnectionString, IResourceWithEnvironment
Aspire.Hosting.Tests (1)
ResourceNotificationTests.cs (1)
723IResourceWithEnvironment,
64 references to IResourceWithEnvironment
Aspire.Hosting (34)
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)
30[assembly: AspireExport(typeof(IResourceWithEnvironment))]
Dashboard\ConsoleLogsConfigurationExtensions.cs (1)
10internal static IResourceBuilder<T> ConfigureConsoleLogs<T>(this IResourceBuilder<T> builder) where T : IResourceWithEnvironment
OtlpConfigurationExtensions.cs (2)
125public static IResourceBuilder<T> WithOtlpExporter<T>(this IResourceBuilder<T> builder) where T : IResourceWithEnvironment 146public static IResourceBuilder<T> WithOtlpExporter<T>(this IResourceBuilder<T> builder, OtlpProtocol protocol) where T : IResourceWithEnvironment
ResourceBuilderExtensions.cs (28)
34public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, string? value) where T : IResourceWithEnvironment 51where T : IResourceWithEnvironment 91where T : IResourceWithEnvironment 113public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, Func<string> callback) where T : IResourceWithEnvironment 130public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Action<EnvironmentCallbackContext> callback) where T : IResourceWithEnvironment 146public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Func<EnvironmentCallbackContext, Task> callback) where T : IResourceWithEnvironment 163where T : IResourceWithEnvironment 186where T : IResourceWithEnvironment 226public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, string name, IResourceBuilder<ParameterResource> parameter) where T : IResourceWithEnvironment 252where T : IResourceWithEnvironment 276where T : IResourceWithEnvironment 520where TDestination : IResourceWithEnvironment 548where TDestination : IResourceWithEnvironment 633where TDestination : IResourceWithEnvironment 653where TDestination : IResourceWithEnvironment 673where TDestination : IResourceWithEnvironment 725where TDestination : IResourceWithEnvironment 800where TDestination : IResourceWithEnvironment 810where T : IResourceWithEnvironment 954if (env is not null && builder.Resource is IResourceWithEndpoints resourceWithEndpoints and IResourceWithEnvironment) 2358where TResource : IResourceWithEnvironment, IResourceWithArgs 2414where TResource : IResourceWithEnvironment, IResourceWithArgs 2462where TResource : IResourceWithEnvironment, IResourceWithArgs 2507where TResource : IResourceWithArgs, IResourceWithEnvironment 2535where TResource : IResourceWithEnvironment, IResourceWithArgs 2569where TResource : IResourceWithEnvironment, IResourceWithArgs 2599where TResource : IResourceWithEnvironment, IResourceWithArgs 2635where TResource : IResourceWithEnvironment, IResourceWithArgs
Aspire.Hosting.Azure (3)
AzureBicepResourceExtensions.cs (3)
79where T : IResourceWithEnvironment 99where T : IResourceWithEnvironment 116where T : 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)
428where TResource : IResourceWithEnvironment
Aspire.Hosting.Docker (1)
DockerComposeInfrastructure.cs (1)
114if (resource is IResourceWithEnvironment resourceWithEnv && resource.Annotations.OfType<OtlpExporterAnnotation>().Any())
Aspire.Hosting.Maui (2)
MauiOtlpExtensions.cs (2)
54where T : IMauiPlatformResource, IResourceWithEnvironment 139where T : IMauiPlatformResource, IResourceWithEnvironment
Aspire.Hosting.Orleans (5)
IProviderConfiguration.cs (1)
19void ConfigureResource<T>(IResourceBuilder<T> resourceBuilder, string configSectionPath) where T : IResourceWithEnvironment;
OrleansServiceClientExtensions.cs (1)
24where T : IResourceWithEnvironment, IResourceWithEndpoints
OrleansServiceExtensions.cs (2)
350where T : IResourceWithEnvironment, IResourceWithEndpoints 359where T : IResourceWithEnvironment, IResourceWithEndpoints
ProviderConfiguration.cs (1)
36public void ConfigureResource<T>(IResourceBuilder<T> resourceBuilder, string configurationSectionName) where T : IResourceWithEnvironment
Aspire.Hosting.Qdrant (2)
QdrantBuilderExtensions.cs (2)
137where TDestination : IResourceWithEnvironment 150where TDestination : IResourceWithEnvironment
Aspire.Hosting.Qdrant.Tests (1)
QdrantPublicApiTests.cs (1)
82IResourceBuilder<IResourceWithEnvironment> builder = null!;