PowerShellScriptResource
Classnet10.0
Represents a PowerShell script resource.
namespace CommunityToolkit.Aspire.Hosting.PowerShell;
public class PowerShellScriptResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithArgs, Aspire.Hosting.ApplicationModel.IResourceWithEnvironment, Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport, System.IDisposable{ // ...}ResourceIResourceIResourceWithArgsIResourceWithEnvironmentIResourceWithWaitSupportIDisposable
5 members
Constructors2
Section titled Constructors Initializes a new instance of the
PowerShellScriptResource class, representing a resource for executing PowerShell scripts. Initializes a new instance of the
PowerShellScriptResource class, representing a resource for executing PowerShell scripts. Properties1
Section titled PropertiesParentget Parent PowerShell runspace pool resource that provides the runspace pool for script execution.
Methods2
Section titled MethodsTask Starts the execution of the PowerShell script asynchronously, publishing state updates and handling script arguments as needed.