Exemple #1
0
        // Invokes the registered delegates one by one until the path is mapped.
        //
        // Parameters:
        //    path = virutal path of the request.
        //
        // Returns a string containing the mapped physical path of the request, or null if
        // the path was not successfully mapped.
        //
        string DoMapPathEvent(string path)
        {
            if (MapPathEvent != null)
            {
                var args = new MapPathEventArgs(path);
                foreach (MapPathEventHandler evt in MapPathEvent.GetInvocationList())
                {
                    evt(this, args);
                    if (args.IsMapped)
                    {
                        return(args.MappedPath);
                    }
                }
            }

            return(null);
        }
		// Invokes the registered delegates one by one until the path is mapped.
		//
		// Parameters:
		//    path = virutal path of the request.
		//
		// Returns a string containing the mapped physical path of the request, or null if
		// the path was not successfully mapped.
		//
		string DoMapPathEvent (string path)
		{
			if (MapPathEvent != null) {
				var args = new MapPathEventArgs (path);
				foreach (MapPathEventHandler evt in MapPathEvent.GetInvocationList ()) {
					evt (this, args);
					if (args.IsMapped)
						return args.MappedPath;
				}
			}

			return null;
		}