Beispiel #1
0
        private object GetAfterExecutionStep(MethodCall methodCall, IAgent agent, string eventName, HttpApplication httpApplication)
        {
            EventHandler afterPipelineEventHandler = (sender, args) => AfterEvent(methodCall, agent, eventName, sender as HttpApplication);

            afterPipelineEventHandler = GetExceptionSafeEventHandler(afterPipelineEventHandler, agent);

            var afterPipelineEventExecptionStep = Statics.CreateSyncEventExecutionStep(httpApplication, afterPipelineEventHandler);

            if (afterPipelineEventExecptionStep == null)
            {
                throw new NullReferenceException("afterPipelineEventExecptionStep");
            }

            return(afterPipelineEventExecptionStep);
        }