Skip to content
Docs Try Aspire

DockerfileBuilderCallbackContext Properties

Class Properties 4 members
Provides context information for Dockerfile build callbacks.
Gets the Dockerfile builder instance.
public DockerfileBuilder Builder { get; }
CancellationToken Section titled CancellationToken CancellationToken
Gets the cancellation token to observe while waiting for the task to complete.
public CancellationToken CancellationToken { get; }
Gets the resource being built.
public IResource Resource { get; }
Services Section titled Services IServiceProvider
Gets the service provider for dependency injection.
public IServiceProvider Services { get; }