PSWebApi.OwinSample.1.1.6-beta
Pre-release
Pre-release
1.1.6-beta
Added Asynchronous Methods with CancellationToken support.
public async static Task<HttpResponseMessage> InvokePowerShellAsync(this ApiController apiController, string scriptPath, IEnumerable<KeyValuePair<string, object>> parameters, CancellationToken cancellationToken)
Allow to stop a long running execution of the pipeline.public static async Task<HttpResponseMessage> InvokeCmdAsync(this ApiController apiController, string scriptPath, string arguments, CancellationToken cancellationToken)
Allow to kill a long running process.