2 instantiations of EnvironmentCallbackContext
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
478var context = new EnvironmentCallbackContext(executionContext, cancellationToken: cancellationToken);
Aspire.Hosting.Tests (1)
Utils\EnvironmentVariableEvaluator.cs (1)
26var context = new EnvironmentCallbackContext(executionContext, config);
21 references to EnvironmentCallbackContext
Aspire.Hosting (12)
ApplicationModel\EnvironmentCallbackAnnotation.cs (3)
53public EnvironmentCallbackAnnotation(Action<EnvironmentCallbackContext> callback) 68public EnvironmentCallbackAnnotation(Func<EnvironmentCallbackContext, Task> callback) 78public Func<EnvironmentCallbackContext, Task> Callback { get; private set; }
ApplicationModel\ResourceExtensions.cs (1)
194var context = new EnvironmentCallbackContext(executionContext, config);
Dcp\ApplicationExecutor.cs (2)
1348var context = new EnvironmentCallbackContext(_executionContext, config, cancellationToken) 1631var context = new EnvironmentCallbackContext(_executionContext, config, cancellationToken);
ProjectResourceBuilderExtensions.cs (1)
700private static void SetOnePortsEnvVariable(this IResourceBuilder<ProjectResource> builder, EnvironmentCallbackContext context, string portEnvVariable, string scheme)
Publishing\ManifestPublishingContext.cs (1)
487var envContext = new EnvironmentCallbackContext(ExecutionContext, config, CancellationToken);
ResourceBuilderExtensions.cs (4)
104public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Action<EnvironmentCallbackContext> callback) where T : IResourceWithEnvironment 119public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Func<EnvironmentCallbackContext, Task> callback) where T : IResourceWithEnvironment 303private static Action<EnvironmentCallbackContext> CreateEndpointReferenceEnvironmentPopulationCallback(EndpointReferenceAnnotation endpointReferencesAnnotation) 614/// The <see cref="EndpointReference"/> can be used to resolve the address of the endpoint in <see cref="WithEnvironment{T}(IResourceBuilder{T}, Action{EnvironmentCallbackContext})"/>.
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
478var context = new EnvironmentCallbackContext(executionContext, cancellationToken: cancellationToken);
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
151builder.WithAnnotation(new EnvironmentCallbackAnnotation((EnvironmentCallbackContext context) =>
Aspire.Hosting.Kafka (3)
KafkaBuilderExtensions.cs (3)
138static void ConfigureKafkaUIContainer(EnvironmentCallbackContext context, EndpointReference endpoint, int index) 201private static void ConfigureKafkaContainer(EnvironmentCallbackContext context, KafkaServerResource resource) 232private static void ConfigureLogDirs(EnvironmentCallbackContext context)
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
189private static void ConfigureAttuContainer(EnvironmentCallbackContext context, MilvusServerResource resource)
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
215private static void ConfigureMongoExpressContainer(EnvironmentCallbackContext context, MongoDBServerResource resource)
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
328private static void SetPgAdminEnvironmentVariables(EnvironmentCallbackContext context)
Aspire.Hosting.Tests (1)
Utils\EnvironmentVariableEvaluator.cs (1)
26var context = new EnvironmentCallbackContext(executionContext, config);