Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/01/2015, 03:30
maialenlopez
 
Fecha de Ingreso: abril-2012
Mensajes: 449
Antigüedad: 12 años
Puntos: 7
Respuesta: httpmodules, httphandler

He visto que hay algunas funciones que me facilitarían un poco este trabajo pero la verdad es que no se muy bien como funcionan, estoy mirando a ver si me aclaro un poco.

He creado una solución con esta funciones para ver en que momento se ejecuta cada una depurando.
Código C#:
Ver original
  1. /* OPCION A */
  2.  
  3.  
  4.         protected override void Execute(System.Web.Routing.RequestContext requestContext)
  5.         {
  6.             /// Hago algo
  7.  
  8.             base.Execute(requestContext);
  9.  
  10.  
  11.             /// Hago algo
  12.  
  13.         }
  14.  
  15.         /* OPCION B */
  16.         protected override void OnActionExecuting(ActionExecutingContext filterContext)
  17.         {
  18.             base.OnActionExecuting(filterContext);
  19.         }
  20.  
  21.         protected override void OnActionExecuted(ActionExecutedContext filterContext)
  22.         {
  23.             base.OnActionExecuted(filterContext);
  24.         }

Pero ejecutando solo me va a las que tengo dentro de la opción B y me gustaría saber por que no funciona la opción A.

Gracias,
__________________
Gracias por todo;

Un saludo