Skip to content
DocsTry Aspire
DocsTry

DockerfileBuilderCallbackContext Properties

ClassProperties4 members
Provides context information for Dockerfile build callbacks.
Gets the Dockerfile builder instance.
public DockerfileBuilder Builder { get; }
CancellationTokenSection titled CancellationTokenCancellationToken
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; }
ServicesSection titled ServicesIServiceProvider
Gets the service provider for dependency injection.
public IServiceProvider Services { get; }