IExecutionConfigurationBuilder Methods
Interface Methods 2 members
Builder for gathering and resolving the execution configuration (arguments and environment variables) for a specific resource.
AddExecutionConfigurationGatherer(IExecutionConfigurationGatherer) Section titled AddExecutionConfigurationGatherer(IExecutionConfigurationGatherer) abstract IExecutionConfigurationBuilder Adds a configuration gatherer to the builder.
public interface IExecutionConfigurationBuilder{ public abstract IExecutionConfigurationBuilder AddExecutionConfigurationGatherer( IExecutionConfigurationGatherer gatherer) { // ... }}Parameters
gatherer IExecutionConfigurationGatherer The configuration gatherer to add. Returns
IExecutionConfigurationBuilder The current instance of the builder. BuildAsync(DistributedApplicationExecutionContext, ILogger?, CancellationToken) Section titled BuildAsync(DistributedApplicationExecutionContext, ILogger?, CancellationToken) abstract Task<IExecutionConfigurationResult> Builds the processed resource configuration (resolved arguments and environment variables).
public interface IExecutionConfigurationBuilder{ public abstract Task<IExecutionConfigurationResult> BuildAsync( DistributedApplicationExecutionContext executionContext, ILogger? resourceLogger = null, CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
executionContext DistributedApplicationExecutionContext The distributed application execution context. resourceLogger ILogger? optional A logger instance for the resource. If none is provided, a default logger will be used. cancellationToken CancellationToken optional A cancellation token. Returns
Task<IExecutionConfigurationResult> The resource configuration result. Any exceptions that occurred while processing are available via the IExecutionConfigurationResult.Exception property.