private void HookupScriptHandlers()
        {
            // This is done once per HttpApplication/HttpModule instance every time
            // a global.<ext> file changes

            // If it's the first request in the domain, call Application_OnStart (if any)
            if (s_firstRequest && s_buildResult != null)
            {
                s_buildResult.CallOnStartMethod();
            }

            // Hook up all the events implemented in the 'global' file
            foreach (string handlerName in _handlers.Keys)
            {
                EventHandlerWrapper eventHandlerWrapper = _handlers[handlerName];

                DynamicFunction f = null;

                if (s_buildResult != null && s_buildResult.EventHandlers != null)
                {
                    s_buildResult.EventHandlers.TryGetValue(handlerName, out f);
                }

                eventHandlerWrapper.SetDynamicFunction(f, s_globalVirtualPath);
            }
        }