ResourceBuilderExtensions.WithDebugSupport<T,TLaunchConfiguration> 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.
Adds support for debugging the resource in VS Code when running in an extension host.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> WithDebugSupport<T,TLaunchConfiguration>(this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Func<string,TLaunchConfiguration> launchConfigurationProducer, string launchConfigurationType, Action<Aspire.Hosting.ApplicationModel.CommandLineArgsCallbackContext>? argsCallback = default) where T : Aspire.Hosting.ApplicationModel.IResource;
static member WithDebugSupport : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IResource)> * Func<string, 'LaunchConfiguration> * string * Action<Aspire.Hosting.ApplicationModel.CommandLineArgsCallbackContext> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IResource)> (requires 'T :> Aspire.Hosting.ApplicationModel.IResource)
<Extension()>
Public Function WithDebugSupport(Of T As IResource, TLaunchConfiguration As IResource) (builder As IResourceBuilder(Of T), launchConfigurationProducer As Func(Of String, TLaunchConfiguration), launchConfigurationType As String, Optional argsCallback As Action(Of CommandLineArgsCallbackContext) = Nothing) As IResourceBuilder(Of T)
Type Parameters
- T
- TLaunchConfiguration
Parameters
- builder
- IResourceBuilder<T>
The resource builder.
Launch configuration producer for the resource.
- launchConfigurationType
- String
The type of the resource.
- argsCallback
- Action<CommandLineArgsCallbackContext>
Optional callback to add or modify command line arguments when running in an extension host. Useful if the entrypoint is usually provided as an argument to the resource executable.