IExecutionConfigurationBuilder Methods
InterfaceMethods2 members
Builder for gathering and resolving the execution configuration (arguments and environment variables) for a specific resource.
AddExecutionConfigurationGatherer(IExecutionConfigurationGatherer) Section titled AddExecutionConfigurationGatherer(IExecutionConfigurationGatherer)abstractI Adds a configuration gatherer to the builder.
public interface IExecutionConfigurationBuilder{ public abstract IExecutionConfigurationBuilder AddExecutionConfigurationGatherer( IExecutionConfigurationGatherer gatherer) { // ... }}Parameters
gathererIReturns
IExecutionConfigurationBuilder The current instance of the builder.BuildAsync(DistributedApplicationExecutionContext, ILogger?, CancellationToken) Section titled BuildAsync(DistributedApplicationExecutionContext, ILogger?, CancellationToken)abstractTask 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 DistributedresourceLogger ILogger? optionalA logger instance for the resource. If none is provided, a default logger will be used.cancellationToken CancellationToken optionalA cancellation token.Returns
Task<IExecutionConfigurationResult> The resource configuration result. Any exceptions that occurred while processing are available via the IExecutionConfigurationResult.Exception property.