diff options
author | Rob Mensching <rob@firegiant.com> | 2020-06-08 16:19:05 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2020-06-08 16:34:16 -0700 |
commit | 3ad9ca681dceee849b7454cfa7f8f0a8e44bceea (patch) | |
tree | 786e5a85c0214942e22db319281450f4d863d41c /src | |
parent | de389d8c8803c3d2fbbf65620695be30fa24754e (diff) | |
download | wix-3ad9ca681dceee849b7454cfa7f8f0a8e44bceea.tar.gz wix-3ad9ca681dceee849b7454cfa7f8f0a8e44bceea.tar.bz2 wix-3ad9ca681dceee849b7454cfa7f8f0a8e44bceea.zip |
Execute command-line commands async
Diffstat (limited to 'src')
-rw-r--r-- | src/WixToolset.Extensibility/Data/ICommandLineCommand.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/WixToolset.Extensibility/Data/ICommandLineCommand.cs b/src/WixToolset.Extensibility/Data/ICommandLineCommand.cs index a0fc9454..b03a18f4 100644 --- a/src/WixToolset.Extensibility/Data/ICommandLineCommand.cs +++ b/src/WixToolset.Extensibility/Data/ICommandLineCommand.cs | |||
@@ -2,6 +2,8 @@ | |||
2 | 2 | ||
3 | namespace WixToolset.Extensibility.Data | 3 | namespace WixToolset.Extensibility.Data |
4 | { | 4 | { |
5 | using System.Threading; | ||
6 | using System.Threading.Tasks; | ||
5 | using WixToolset.Extensibility.Services; | 7 | using WixToolset.Extensibility.Services; |
6 | 8 | ||
7 | /// <summary> | 9 | /// <summary> |
@@ -22,8 +24,9 @@ namespace WixToolset.Extensibility.Data | |||
22 | /// <summary> | 24 | /// <summary> |
23 | /// Executes the command. | 25 | /// Executes the command. |
24 | /// </summary> | 26 | /// </summary> |
27 | /// <param name="cancellationToken">Cancellation token.</param> | ||
25 | /// <returns>Exit code for the command.</returns> | 28 | /// <returns>Exit code for the command.</returns> |
26 | int Execute(); | 29 | Task<int> ExecuteAsync(CancellationToken cancellationToken); |
27 | 30 | ||
28 | /// <summary> | 31 | /// <summary> |
29 | /// Allows the command to parse command-line arguments. | 32 | /// Allows the command to parse command-line arguments. |