mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-06 04:28:15 +08:00
Add the possibility to register multiple interceptors (#1412)
Having the interceptors registered with the ITypeRegistrar also enables the usage of ITypeResolver in interceptors.
This commit is contained in:
@ -21,4 +21,11 @@ public sealed class CallbackCommandInterceptor : ICommandInterceptor
|
||||
{
|
||||
_callback(context, settings);
|
||||
}
|
||||
|
||||
#if NETSTANDARD2_0
|
||||
/// <inheritdoc/>
|
||||
public void InterceptResult(CommandContext context, CommandSettings settings, ref int result)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
}
|
Reference in New Issue
Block a user