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

InternalBuildDescriptor() private method

Builds the ControllerMetaDescriptor for the specified controller type
private InternalBuildDescriptor ( Type controllerType ) : ControllerMetaDescriptor
controllerType System.Type Type of the controller.
return Castle.MonoRail.Framework.Internal.ControllerMetaDescriptor
		private ControllerMetaDescriptor InternalBuildDescriptor(Type controllerType)
		{
			if (logger.IsDebugEnabled)
			{
				logger.DebugFormat("Building controller descriptor for {0}", controllerType);
			}

			ControllerMetaDescriptor descriptor = new ControllerMetaDescriptor();

			CollectClassLevelAttributes(controllerType, descriptor);
			
			CollectActions(controllerType, descriptor);

			CollectActionLevelAttributes(descriptor);
			
			return descriptor;
		}