withContainerFilesCallback

Method
📦 Aspire.Hosting v17.0.0
interface ContainerResource {
// ... omitted for brevity
withContainerFilesCallback(
destinationPath: string,
callback: callback,
options?: ContainerFilesOptions): ContainerResource;
}

Signature

methodwithContainerFilesCallbackbuilder
Creates or updates files and/or folders at the destination path in the container using entries produced by a callback.
withContainerFilesCallback(destinationPath: string, callback: (arg1: ContainerFileSystemCallbackContext, arg2: cancellationToken) => Promise<ContainerFileSystemItem[]>, options?: ContainerFilesOptions): ContainerResource
destinationPathstringThe destination absolute path in the container.
callback(arg1: ContainerFileSystemCallbackContext, arg2: cancellationToken) => Promise<ContainerFileSystemItem[]>A callback that returns the file system entries to create or update. Use the factory methods on `ContainerFileSystemCallbackContext` (createFile, createDirectory, createCertificateFile) to build the entries.
optionsContainerFilesOptionsoptionalOptions for the created or updated file system entries.
ContainerResource

Applies to

This method applies to the following types: