Castle.MonoRail.Framework.Services.DefaultControllerDescriptorProvider.CollectDynamicAction C# (CSharp) Method

CollectDynamicAction() private method

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.
return 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);
				}
			}
		}