PowerShellScriptResource
Class net10.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 ConstructorsPowerShellScriptResource(string, ScriptBlock, PowerShellRunspacePoolResource) Initializes a new instance of the
PowerShellScriptResource class, representing a resource for executing PowerShell scripts. PowerShellScriptResource(string, FileInfo, PowerShellRunspacePoolResource) Initializes a new instance of the
PowerShellScriptResource class, representing a resource for executing PowerShell scripts. Properties1
Section titled PropertiesMethods2
Section titled MethodsBreakAsyncTask<bool> Breaks the PowerShell script execution.
StartAsync(ILogger, ResourceNotificationService, CancellationToken)Task Starts the PowerShell script execution.