ContainerResourceBuilderExtensions.PublishAsContainer<T> Method

Definition

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>.

Applies to