System.Web.HttpApplicationFactory.FireEvent C# (CSharp) Method

FireEvent() private method

private FireEvent ( string method_name, object target, object args ) : bool
method_name string
target object
args object
return bool
		bool FireEvent (string method_name, object target, object [] args)
		{
			Hashtable possibleEvents = GetApplicationTypeEvents ((HttpApplication) target);
			MethodInfo method = possibleEvents [method_name] as MethodInfo;
			if (method == null)
				return false;

			if (method.GetParameters ().Length == 0)
				args = null;

			method.Invoke (target, args);

			return true;
		}