Skip to content
DocsTry Aspire
DocsTry

IExecutionConfigurationGatherer Methods

InterfaceMethods1 member
Gathers resource configurations (arguments and environment variables) and optionally applies additional metadata to the resource.
GatherAsync(IExecutionConfigurationGathererContext, IResource, ILogger, DistributedApplicationExecutionContext, CancellationToken)Section titled GatherAsync(IExecutionConfigurationGathererContext, IResource, ILogger, DistributedApplicationExecutionContext, CancellationToken)abstractValueTask
Gathers the relevant resource execution configuration (arguments, environment variables, and optionally additional custom data)
public interface IExecutionConfigurationGatherer
{
public abstract ValueTask GatherAsync(
IExecutionConfigurationGathererContext context,
IResource resource,
ILogger resourceLogger,
DistributedApplicationExecutionContext executionContext,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
contextIExecutionConfigurationGathererContextThe initial resource configuration context.
resourceIResourceThe resource for which configuration is being gathered.
resourceLoggerILoggerThe logger for the resource.
executionContextDistributedApplicationExecutionContextThe execution context in which the resource is being configured.
cancellationTokenCancellationTokenoptionalA cancellation token.
ValueTaskA task representing the asynchronous operation.