ContainerBuildOptionsCallbackContext Properties
Class Properties 11 members
Context for configuring container build options via a callback.
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; }Remarks
Use
DistributedApplicationExecutionContext.IsPublishMode or DistributedApplicationExecutionContext.IsRunMode to vary build options (for example ContainerBuildOptionsCallbackContext.TargetPlatform) between local run and publish operations. Gets or sets the container image format.
public ContainerImageFormat? ImageFormat { get; set; } Gets or sets the local image name for the built container.
public string? LocalImageName { get; set; } Gets or sets the local image tag for the built container.
public string? LocalImageTag { get; set; } Gets or sets the output path for the container archive.
public string? OutputPath { get; set; } Gets the resource being built.
public IResource Resource { get; } Gets the service provider.
public IServiceProvider Services { get; } Gets or sets the target platform for the container.
public ContainerTargetPlatform? TargetPlatform { get; set; }