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:
Nils Andresen
2024-01-06 23:28:20 +01:00
committed by GitHub
parent e7ce6a69b7
commit a94bc15746
8 changed files with 147 additions and 7 deletions

View File

@ -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
}