Share via


ExecutableResourceBuilderExtensions.WithCommand<T> Method

Definition

Sets the command for the executable resource.

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

Type Parameters

T

Type of executable resource.

Parameters

builder
IResourceBuilder<T>

Builder for the executable resource.

command
String

Command.

Returns

The IResourceBuilder<T>.

Applies to