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

CollectActionAttributes() private method

Collects the action attributes.
private CollectActionAttributes ( MethodInfo method, ControllerMetaDescriptor descriptor ) : void
method System.Reflection.MethodInfo The method.
descriptor Castle.MonoRail.Framework.Internal.ControllerMetaDescriptor The descriptor.
return void
		private void CollectActionAttributes(MethodInfo method, ControllerMetaDescriptor descriptor)
		{
			if (logger.IsDebugEnabled)
			{
				logger.DebugFormat("Collection attributes for action {0}", method.Name);
			}

			ActionMetaDescriptor actionDescriptor = descriptor.GetAction(method);

			CollectResources(actionDescriptor, method);
			CollectSkipFilter(actionDescriptor, method);
			CollectRescues(actionDescriptor, method);
			CollectAccessibleThrough(actionDescriptor, method);
			CollectSkipRescue(actionDescriptor, method);
			CollectLayout(actionDescriptor, method);
			CollectCacheConfigures(actionDescriptor, method);
			CollectTransformFilter(actionDescriptor, method);
			
			if (method.IsDefined(typeof(AjaxActionAttribute), true))
			{
				descriptor.AjaxActions.Add(method);
			}
		}