Watch Aspire live streamsDocsTry Aspire

ContainerBuildOptionsCallbackContext Properties

ClassProperties11 members
Context for configuring container build options via a callback.
CancellationTokenSection titled CancellationTokenCancellationToken
Gets the cancellation token.
public CancellationToken CancellationToken { get; }
Gets or sets the destination for the container image.
public ContainerImageDestination? Destination { get; set; }
Gets the distributed application execution context.
public DistributedApplicationExecutionContext ExecutionContext { get; }
Gets or sets the container image format.
public ContainerImageFormat? ImageFormat { get; set; }
LocalImageNameSection titled LocalImageNamenullablestring?
Gets or sets the local image name for the built container.
public string? LocalImageName { get; set; }
LocalImageTagSection titled LocalImageTagnullablestring?
Gets or sets the local image tag for the built container.
public string? LocalImageTag { get; set; }
Gets the logger instance.
public ILogger Logger { get; }
OutputPathSection titled OutputPathnullablestring?
Gets or sets the output path for the container archive.
public string? OutputPath { get; set; }
For .NET SDK publishing, a non-existent path with any filename extension is an archive filename. End a directory path with the platform's directory separator to make directory intent explicit, especially when its name contains a period. Prefer an explicit archive filename to avoid ambiguity. Other container image builders may interpret this path as an output directory.
Gets the resource being built.
public IResource Resource { get; }
ServicesSection titled ServicesIServiceProvider
Gets the service provider.
public IServiceProvider Services { get; }
Gets or sets the target platform for the container.
public ContainerTargetPlatform? TargetPlatform { get; set; }