// 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()); }
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; } }
public void handler_IncomingRequestStarted(object sender, Eventing.Args.IncomingRequestEventArgs e) { // throw new Exception("Demo exception to be shown in the trace output"); }
// Demo event handler void handler_IncomingRequestStarted(object sender, Eventing.Args.IncomingRequestEventArgs e) { var values = e.Param.BackloadValues; }
public void handler_IncomingRequestStarted(object sender, Eventing.Args.IncomingRequestEventArgs e) { }