2 instantiations of EnvironmentCallbackContext
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
478
var context = new
EnvironmentCallbackContext
(executionContext, cancellationToken: cancellationToken);
Aspire.Hosting.Tests (1)
Utils\EnvironmentVariableEvaluator.cs (1)
26
var context = new
EnvironmentCallbackContext
(executionContext, config);
21 references to EnvironmentCallbackContext
Aspire.Hosting (12)
ApplicationModel\EnvironmentCallbackAnnotation.cs (3)
53
public EnvironmentCallbackAnnotation(Action<
EnvironmentCallbackContext
> callback)
68
public EnvironmentCallbackAnnotation(Func<
EnvironmentCallbackContext
, Task> callback)
78
public Func<
EnvironmentCallbackContext
, Task> Callback { get; private set; }
ApplicationModel\ResourceExtensions.cs (1)
194
var
context = new EnvironmentCallbackContext(executionContext, config);
Dcp\ApplicationExecutor.cs (2)
1365
var
context = new EnvironmentCallbackContext(_executionContext, config, cancellationToken)
1648
var
context = new EnvironmentCallbackContext(_executionContext, config, cancellationToken);
ProjectResourceBuilderExtensions.cs (1)
700
private static void SetOnePortsEnvVariable(this IResourceBuilder<ProjectResource> builder,
EnvironmentCallbackContext
context, string portEnvVariable, string scheme)
Publishing\ManifestPublishingContext.cs (1)
487
var
envContext = new EnvironmentCallbackContext(ExecutionContext, config, CancellationToken);
ResourceBuilderExtensions.cs (4)
105
public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Action<
EnvironmentCallbackContext
> callback) where T : IResourceWithEnvironment
120
public static IResourceBuilder<T> WithEnvironment<T>(this IResourceBuilder<T> builder, Func<
EnvironmentCallbackContext
, Task> callback) where T : IResourceWithEnvironment
304
private static Action<
EnvironmentCallbackContext
> CreateEndpointReferenceEnvironmentPopulationCallback(EndpointReferenceAnnotation endpointReferencesAnnotation)
619
/// 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)
478
var
context = new EnvironmentCallbackContext(executionContext, cancellationToken: cancellationToken);
Aspire.Hosting.Azure.EventHubs (1)
AzureEventHubsExtensions.cs (1)
151
builder.WithAnnotation(new EnvironmentCallbackAnnotation((
EnvironmentCallbackContext
context) =>
Aspire.Hosting.Kafka (3)
KafkaBuilderExtensions.cs (3)
138
static void ConfigureKafkaUIContainer(
EnvironmentCallbackContext
context, EndpointReference endpoint, int index)
201
private static void ConfigureKafkaContainer(
EnvironmentCallbackContext
context, KafkaServerResource resource)
232
private static void ConfigureLogDirs(
EnvironmentCallbackContext
context)
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
189
private static void ConfigureAttuContainer(
EnvironmentCallbackContext
context, MilvusServerResource resource)
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
215
private static void ConfigureMongoExpressContainer(
EnvironmentCallbackContext
context, MongoDBServerResource resource)
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
331
private static void SetPgAdminEnvironmentVariables(
EnvironmentCallbackContext
context)
Aspire.Hosting.Tests (1)
Utils\EnvironmentVariableEvaluator.cs (1)
26
var
context = new EnvironmentCallbackContext(executionContext, config);