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