You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Asynchronously invokes a Windows batch file or executable file by using a set of command-line arguments.
138
+
/// </summary>
139
+
/// <param name="apiController">The ApiController. This is an extension method to ApiController, when you use instance method syntax to call this method, omit this parameter.</param>
140
+
/// <param name="scriptPath">The fully qualified location of an application file (batch file or executable file) to be executed.</param>
141
+
/// <param name="arguments">Command-line arguments to pass when starting the process.</param>
142
+
/// <param name="cancellationToken">The cancellation token can be used to request that the operation be abandoned before completing the execution. Exceptions will be reported via the returned Task object.</param>
143
+
/// <returns>A task representing the asynchronous operation.</returns>
Copy file name to clipboardExpand all lines: src/DataBooster.PSWebApi/PSControllerExtensions.cmd.cs
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,5 +102,18 @@ public static HttpResponseMessage InvokeCmd(this ApiController apiController, st
102
102
}
103
103
}
104
104
}
105
+
106
+
/// <summary>
107
+
/// Synchronously invokes a Windows batch file or executable file by using a set of command-line arguments.
108
+
/// </summary>
109
+
/// <param name="apiController">The ApiController. This is an extension method to ApiController, when you use instance method syntax to call this method, omit this parameter.</param>
110
+
/// <param name="scriptPath">The fully qualified location of an application file (batch file or executable file) to be executed.</param>
111
+
/// <param name="arguments">Command-line arguments to pass when starting the process.</param>
112
+
/// <param name="timeoutSeconds">The time in seconds to wait for the command to execute before terminating the attempt to execute a command and generating an error.</param>
113
+
/// <returns>A complete HttpResponseMessage contains the standard output (stdout) if the application runs successfully, Otherwise, the standard error (stderr).</returns>
Copy file name to clipboardExpand all lines: src/DataBooster.PSWebApi/PSControllerExtensions.register.cs
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,15 +19,18 @@ public static partial class PSControllerExtensions
19
19
/// <param name="config">The <see cref="HttpConfiguration"/>. This is an extension method to HttpConfiguration, when you use instance method syntax to call this method, omit this parameter.</param>
20
20
/// <param name="psConfiguration">The configuration for initializing a instance PSMediaTypeFormatter, which contains all currently supported PSConverterRegistry add-ins.</param>
21
21
/// <param name="mediaTypes">A list of supported request Content-Types for redirecting StandardInput.</param>
0 commit comments