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
Could you please add the condition !x.IsAbstract() in CommandRegistry:
public ICommandRegistry Discover(params Assembly[] assemblies)
{
Type commandHandlerBase = typeof(ICommandHandlerBase);
foreach (Assembly assembly in assemblies)
{
Type[] handlers = assembly.GetTypes().Where(x => !x.IsAbstract() && commandHandlerBase.IsAssignableFrom(x)).ToArray();
foreach (Type handler in handlers)
{
Register(handler);
}
}
return this;
}
I'm using some abstract CommandHandler base classes with unspecified generic parameters that will crash FunctionMonkey when registered to the CommandRegistry.
The text was updated successfully, but these errors were encountered:
Could you please add the condition !x.IsAbstract() in CommandRegistry:
I'm using some abstract CommandHandler base classes with unspecified generic parameters that will crash FunctionMonkey when registered to the CommandRegistry.
The text was updated successfully, but these errors were encountered: