PowerShellRunspacePoolResourceBuilderExtensions
Class static net10.0
Extensions for the PowerShellRunspacePoolResourceBuilder.
namespace CommunityToolkit.Aspire.Hosting.PowerShell;
public static class PowerShellRunspacePoolResourceBuilderExtensions{ // ...}Methods2
Section titled MethodsAddScript(IResourceBuilder<PowerShellRunspacePoolResource>, string, string)extensionIResourceBuilder<PowerShellScriptResource> Adds a PowerShell script resource to the distributed application.
WithReference(IResourceBuilder<PowerShellRunspacePoolResource>, IResourceBuilder<IResourceWithConnectionString>, string?, bool)extensionIResourceBuilder<PowerShellRunspacePoolResource> Adds a reference to an Aspire resource that implements IResourceWithConnectionString. The resource will be exposed as a PowerShell variable in the runspace that is named after the resource name.