Ejemplo n.º 1
0
        // Request (GET,POST,PUT,DELETE) comes in. Values (querystring, form) have been read and can be manipulated before the
        // internal environment initializes. Request can be aborted if it does not match criteria.
        public void handler_IncomingRequestStarted(object sender, Eventing.Args.IncomingRequestEventArgs e)
        {
            // Demo 1: We forbid PUT requests
            // if (e.Context.HttpMethod == "PUT") e.Context.PipelineControl.ExecutePipeline = false;

            e.Context.PipelineControl.Message.MessageText = string.Format(_logpattern, "log-in", "IncomingRequestStarted", DateTime.Now.ToLongTimeString());
        }
Ejemplo n.º 2
0
 void handler_IncomingRequestStarted(object sender, Eventing.Args.IncomingRequestEventArgs e)
 {
     // Demo: Disallow PUT request within the event handler.
     if (e.Context.HttpMethod == "PUT")
     {
         e.Context.PipelineControl.ExecutePipeline = false;
     }
 }
Ejemplo n.º 3
0
 public void handler_IncomingRequestStarted(object sender, Eventing.Args.IncomingRequestEventArgs e)
 {
     // throw new Exception("Demo exception to be shown in the trace output");
 }
Ejemplo n.º 4
0
 // Demo event handler
 void handler_IncomingRequestStarted(object sender, Eventing.Args.IncomingRequestEventArgs e)
 {
     var values = e.Param.BackloadValues;
 }
Ejemplo n.º 5
0
 public void handler_IncomingRequestStarted(object sender, Eventing.Args.IncomingRequestEventArgs e)
 {
 }