ContainerResourceBuilderExtensions.PublishAsContainer<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Changes the resource to be published as a container in the manifest.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> PublishAsContainer<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder) where T : Aspire.Hosting.ApplicationModel.ContainerResource;
static member PublishAsContainer : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)> (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)
<Extension()>
Public Function PublishAsContainer(Of T As ContainerResource) (builder As IResourceBuilder(Of T)) As IResourceBuilder(Of T)
Type Parameters
- T
Parameters
- builder
- IResourceBuilder<T>
Resource builder.
Returns
A reference to the IResourceBuilder<T>.