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
{{ message }}
Repository navigation
Consider a CliAction design that doesn't require custom implementations to override both Invoke and InvokeAsync methods #1934
changed the title [-]Consider a design that doesn't require two methods (e.g. a delegate instead of an interface) when any given handler instance only needs one[/-][+]Consider a `ICommandHandler` design that doesn't require both `Invoke` and `InvokeAsync` methods[/+]on Nov 2, 2022
changed the title [-]Consider a `ICommandHandler` design that doesn't require both `Invoke` and `InvokeAsync` methods[/-][+]Consider a `CliAction` design that doesn't require custom implementations to override both `Invoke` and `InvokeAsync` methods[/+]on Mar 31, 2023
Activity
[-]Consider a design that doesn't require two methods (e.g. a delegate instead of an interface) when any given handler instance only needs one[/-][+]Consider a `ICommandHandler` design that doesn't require both `Invoke` and `InvokeAsync` methods[/+]KalleOlaviNiemitalo commentedon Mar 31, 2023
ICommandHandler was replaced with CliAction in #2095, but this issue applies to that too.
[-]Consider a `ICommandHandler` design that doesn't require both `Invoke` and `InvokeAsync` methods[/-][+]Consider a `CliAction` design that doesn't require custom implementations to override both `Invoke` and `InvokeAsync` methods[/+]jonsequitur commentedon Jul 1, 2025
This is resolved by
CommandLineActionhaving two different implementations:SynchronousCommandLineActionandAsynchronousCommandLineAction.