Castle.MonoRail.Framework.Services.DefaultControllerDescriptorProvider.CollectDynamicAction C# (CSharp) Метод

CollectDynamicAction() приватный Метод

Collects the dynamic action.
private CollectDynamicAction ( ControllerMetaDescriptor descriptor, Type controllerType ) : void
descriptor Castle.MonoRail.Framework.Internal.ControllerMetaDescriptor The descriptor.
controllerType System.Type Type of the controller.
Результат void
		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);
				}
			}
		}