public bool IsCommandType(Type t)
{
Guard.AgainstNull(nameof(t), t);
try
{
return CommandsConventionCache.ApplyConvention(t, typeHandle =>
{
var type = Type.GetTypeFromHandle(typeHandle);
if (type.IsFromParticularAssembly())
{
return false;
}
return IsCommandTypeAction(type);
});
}
catch (Exception ex)
{
throw new Exception("Failed to evaluate Command convention. See inner exception for details.", ex);
}
}