private void CollectDynamicAction(ControllerMetaDescriptor descriptor, Type controllerType)
{
object[] attributes = controllerType.GetCustomAttributes(typeof(DynamicActionProviderAttribute), true);
if (attributes.Length != 0)
{
foreach(DynamicActionProviderAttribute attr in attributes)
{
descriptor.ActionProviders.Add(attr.ProviderType);
}
}
}