Partilhar via


ContainerResourceBuilderExtensions.WithEntrypoint<T> Method

Definition

Sets the Entrypoint for the container.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithEntrypoint<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, string entrypoint) where T : Aspire.Hosting.ApplicationModel.ContainerResource;
static member WithEntrypoint : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)> (requires 'T :> Aspire.Hosting.ApplicationModel.ContainerResource)
<Extension()>
Public Function WithEntrypoint(Of T As ContainerResource) (builder As IResourceBuilder(Of T), entrypoint As String) As IResourceBuilder(Of T)

Type Parameters

T

The resource type.

Parameters

builder
IResourceBuilder<T>

The resource builder.

entrypoint
String

The new entrypoint for the container.

Returns

The IResourceBuilder<T>.

Applies to