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