Skip to content
Docs Try Aspire

ContainerBuildOptionsCallbackContext Constructors

Class Constructors 1 member
Context for configuring container build options via a callback.
Constructor(IResource, IServiceProvider, ILogger, CancellationToken, DistributedApplicationExecutionContext?) Section titled Constructor(IResource, IServiceProvider, ILogger, CancellationToken, DistributedApplicationExecutionContext?)
Initializes a new instance of ContainerBuildOptionsCallbackContext.
public sealed class ContainerBuildOptionsCallbackContext
{
public ContainerBuildOptionsCallbackContext(
IResource resource,
IServiceProvider services,
ILogger logger,
CancellationToken cancellationToken,
DistributedApplicationExecutionContext? executionContext = null)
{
// ...
}
}
resource IResource The resource being built.
services IServiceProvider The service provider.
logger ILogger The logger instance.
cancellationToken CancellationToken The cancellation token.
executionContext DistributedApplicationExecutionContext? optional The distributed application execution context.