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

CollectAccessibleThrough() private method

Collects the accessible through.
private CollectAccessibleThrough ( ActionMetaDescriptor actionDescriptor, MethodInfo method ) : void
actionDescriptor Castle.MonoRail.Framework.Internal.ActionMetaDescriptor The action descriptor.
method System.Reflection.MethodInfo The method.
return void
		private void CollectAccessibleThrough(ActionMetaDescriptor actionDescriptor, MethodInfo method)
		{
			object[] attributes = method.GetCustomAttributes(typeof(AccessibleThroughAttribute), true);
			
			if (attributes.Length != 0)
			{
				actionDescriptor.AccessibleThrough = (AccessibleThroughAttribute) attributes[0];
			}
		}