Skip to content

Commit ad0cd1f

Browse files
committed
Updating the approved public API
1 parent 003adb2 commit ad0cd1f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/System.CommandLine.ApiCompatibility.Tests/ApiCompatibilityApprovalTests.System_CommandLine_api_is_not_changed.approved.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
public static class CommandExtensions
6666
public static System.Int32 Invoke(System.String[] args, IConsole console = null)
6767
public static System.Int32 Invoke(System.String commandLine, IConsole console = null)
68-
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String[] args, IConsole console = null)
69-
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String commandLine, IConsole console = null)
68+
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String[] args, IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
69+
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String commandLine, IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
7070
public static System.CommandLine.Parsing.ParseResult Parse(System.String[] args)
7171
public static System.CommandLine.Parsing.ParseResult Parse(System.String commandLine)
7272
public class CommandLineConfiguration
@@ -367,17 +367,18 @@ System.CommandLine.Invocation
367367
public abstract class IInvocationResult
368368
public System.Void Apply(InvocationContext context)
369369
public class InvocationContext, System.IDisposable
370-
.ctor(System.CommandLine.Parsing.ParseResult parseResult, System.CommandLine.IConsole console = null)
370+
.ctor(System.CommandLine.Parsing.ParseResult parseResult, System.CommandLine.IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
371371
public System.CommandLine.Binding.BindingContext BindingContext { get; }
372+
public System.Threading.CancellationToken CancellationToken { get; }
372373
public System.CommandLine.IConsole Console { get; }
373374
public System.Int32 ExitCode { get; set; }
374375
public System.CommandLine.Help.HelpBuilder HelpBuilder { get; }
375376
public IInvocationResult InvocationResult { get; set; }
376377
public System.CommandLine.LocalizationResources LocalizationResources { get; }
377378
public System.CommandLine.Parsing.Parser Parser { get; }
378379
public System.CommandLine.Parsing.ParseResult ParseResult { get; set; }
380+
public System.Void AddLinkedCancellationToken(System.Threading.CancellationToken token)
379381
public System.Void Dispose()
380-
public System.Threading.CancellationToken GetCancellationToken()
381382
public delegate InvocationMiddleware : System.MulticastDelegate, System.ICloneable, System.Runtime.Serialization.ISerializable
382383
.ctor(System.Object object, System.IntPtr method)
383384
public System.IAsyncResult BeginInvoke(InvocationContext context, System.Func<InvocationContext,System.Threading.Tasks.Task> next, System.AsyncCallback callback, System.Object object)
@@ -491,13 +492,13 @@ System.CommandLine.Parsing
491492
public static System.Boolean HasOption(System.CommandLine.IOption option)
492493
public static System.Boolean HasOption(System.String alias)
493494
public static System.Int32 Invoke(System.CommandLine.IConsole console = null)
494-
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.CommandLine.IConsole console = null)
495+
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.CommandLine.IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
495496
public static System.String TextToMatch(System.Nullable<System.Int32> position = null)
496497
public static class ParserExtensions
497498
public static System.Int32 Invoke(System.String commandLine, System.CommandLine.IConsole console = null)
498499
public static System.Int32 Invoke(System.String[] args, System.CommandLine.IConsole console = null)
499-
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String commandLine, System.CommandLine.IConsole console = null)
500-
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String[] args, System.CommandLine.IConsole console = null)
500+
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String commandLine, System.CommandLine.IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
501+
public static System.Threading.Tasks.Task<System.Int32> InvokeAsync(System.String[] args, System.CommandLine.IConsole console = null, System.Threading.CancellationToken cancellationToken = null)
501502
public static ParseResult Parse(System.String commandLine)
502503
public enum ResponseFileHandling : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
503504
ParseArgsAsLineSeparated=0

0 commit comments

Comments
 (0)