forked from NTTLimitedRD/PowerShell.REST.API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIRunner.cs
27 lines (25 loc) · 859 Bytes
/
IRunner.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using DynamicPowerShellApi.Model;
namespace DynamicPowerShellApi
{
using System.Collections.Generic;
using System.Threading.Tasks;
/// <summary>
/// The Runner interface for executing methods with parameters.
/// </summary>
public interface IRunner
{
/// <summary> Asynchronous execution of a method with parameters. </summary>
/// <param name="filename"> The filename. </param>
/// <param name="snapin"> The snap in. </param>
/// <param name="module"> The module. </param>
/// <param name="parametersList"> The parameters List. </param>
/// <param name="asJob"> Run this as a PowerShell job. </param>
/// <returns> The <see cref="Task"/>. </returns>
Task<PowershellReturn> ExecuteAsync(
string filename,
string snapin,
string module,
IList<KeyValuePair<string, string>> parametersList,
bool asJob);
}
}