Skip to content
DocsTry Aspire
DocsTry

ContainerBuildOptionsCallbackContext

Handle
📦 Aspire.Hosting v13.5.0
interface ContainerBuildOptionsCallbackContext {
readonly cancellationToken: cancellationToken;
destination: ContainerImageDestination;
readonly executionContext: DistributedApplicationExecutionContext;
imageFormat: ContainerImageFormat;
localImageName: string;
localImageTag: string;
readonly logger: ILogger;
outputPath: string;
readonly resource: IResource;
readonly services: IServiceProvider;
targetPlatform: ContainerTargetPlatform;
}

Properties

propertycancellationTokencancellationTokenget
Gets the cancellation token.
propertydestinationContainerImageDestinationget · set
Gets or sets the destination for the container image.
propertyexecutionContextDistributedApplicationExecutionContextget
Gets the distributed application execution context.
propertyimageFormatContainerImageFormatget · set
Gets or sets the container image format.
propertylocalImageNamestringget · set
Gets or sets the local image name for the built container.
propertylocalImageTagstringget · set
Gets or sets the local image tag for the built container.
propertyloggerILoggerget
Gets the logger instance.
propertyoutputPathstringget · set
Gets or sets the output path for the container archive.
propertyresourceIResourceget
Gets the resource being built.
propertyservicesIServiceProviderget
Gets the service provider.
propertytargetPlatformContainerTargetPlatformget · set
Gets or sets the target platform for the container.