Skip to content
Docs Try Aspire

PowerShellScriptResource Methods

Class Methods 2 members
Represents a PowerShell script resource.
BreakAsync Section titled BreakAsync Task<bool>
Breaks the PowerShell script execution.
public class PowerShellScriptResource
{
public Task<bool> BreakAsync()
{
// ...
}
}
StartAsync(ILogger, ResourceNotificationService, CancellationToken) Section titled StartAsync(ILogger, ResourceNotificationService, CancellationToken) Task
Starts the PowerShell script execution.
public class PowerShellScriptResource
{
public Task StartAsync(
ILogger scriptLogger,
ResourceNotificationService notificationService,
CancellationToken cancellationToken = default(CancellationToken))
{
// ...
}
}
scriptLogger ILogger
notificationService ResourceNotificationService
cancellationToken CancellationToken optional
ArgumentOutOfRangeException