Castle.MonoRail.Framework.Services.DefaultControllerDescriptorProvider.CollectAccessibleThrough C# (CSharp) Méthode

CollectAccessibleThrough() private méthode

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.
Résultat void
		private void CollectAccessibleThrough(ActionMetaDescriptor actionDescriptor, MethodInfo method)
		{
			object[] attributes = method.GetCustomAttributes(typeof(AccessibleThroughAttribute), true);
			
			if (attributes.Length != 0)
			{
				actionDescriptor.AccessibleThrough = (AccessibleThroughAttribute) attributes[0];
			}
		}