public T GetActionOrHandlerAttribute <T>() where T : Attribute { return(MethodDescriptor.GetAttribute <T>() ?? HandlerTypeDescriptor.GetAttribute <T>()); }
public IEnumerable <T> GetActionOrHandlerAttributes <T>() where T : Attribute { return(MethodDescriptor.GetAttributes <T>() .Union(HandlerTypeDescriptor.GetAttributes <T>())); }
public bool HasActionOrHandlerAttribute <T>() where T : Attribute { return(MethodDescriptor.HasAttribute <T>() || HandlerTypeDescriptor.HasAttribute <T>()); }