Ejemplo n.º 1
0
 public virtual void OnEndRequest(IProxyHttpContext httpContext)
 {
     EndRequest = new OnEndRequestEventData()
     {
         HttpContext = httpContext,
     };
 }
 public virtual void OnBeginRequest(IProxyHttpContext httpContext)
 {
     BeginRequest = new OnRequestEventData()
     {
         HttpContext = httpContext
     };
 }
 public virtual void OnEndRequest(IProxyHttpContext httpContext)
 {
     EndRequest = new OnRequestEventData()
     {
         HttpContext = httpContext
     };
 }
 public virtual void OnHostingUnhandledException(IProxyHttpContext httpContext, IProxyException exception)
 {
     HostingUnhandledException = new OnExceptionEventData()
     {
         HttpContext = httpContext,
         Exception = exception
     };
 }
 public virtual void OnDiagnosticHandledException(IProxyHttpContext httpContext, IProxyException exception)
 {
     DiagnosticHandledException = new OnExceptionEventData()
     {
         HttpContext = httpContext,
         Exception   = exception
     };
 }
 public virtual void OnDiagnosticHandledException(IProxyHttpContext httpContext, IProxyException exception)
 {
     DiagnosticHandledException = new OnExceptionEventData()
     {
         HttpContext = httpContext,
         Exception = exception
     };
 }
Ejemplo n.º 7
0
 public virtual void OnUnhandledException(IProxyHttpContext httpContext, IProxyException exception)
 {
     UnhandledException = new OnUnhandledExceptionEventData()
     {
         HttpContext = httpContext,
         Exception   = exception,
     };
 }
Ejemplo n.º 8
0
 public virtual void OnAfterAction(
     IProxyHttpContext httpContext,
     IProxyActionDescriptor actionDescriptor)
 {
     AfterAction = new OnAfterActionEventData()
     {
         ActionDescriptor = actionDescriptor,
         HttpContext      = httpContext,
     };
 }
 public virtual void OnAfterAction(
     IProxyHttpContext httpContext,
     IProxyActionDescriptor actionDescriptor)
 {
     AfterAction = new OnAfterActionEventData()
     {
         ActionDescriptor = actionDescriptor,
         HttpContext = httpContext,
     };
 }
Ejemplo n.º 10
0
 public virtual void OnBeforeAction(
     IProxyHttpContext httpContext,
     IProxyRouteData routeData,
     IProxyActionDescriptor actionDescriptor)
 {
     BeforeAction = new OnBeforeActionEventData()
     {
         ActionDescriptor = actionDescriptor,
         HttpContext      = httpContext,
         RouteData        = routeData,
     };
 }
Ejemplo n.º 11
0
 public virtual void OnBeforeAction(
     IProxyHttpContext httpContext,
     IProxyRouteData routeData,
     IProxyActionDescriptor actionDescriptor)
 {
     BeforeAction = new OnBeforeActionEventData()
     {
         ActionDescriptor = actionDescriptor,
         HttpContext = httpContext,
         RouteData = routeData,
     };
 }
Ejemplo n.º 12
0
 public virtual void OnEndPageInstrumentationContext(
     IProxyHttpContext httpContext,
     string path,
     int position,
     int length,
     bool isLiteral)
 {
     PageInstrumentationData.Add(new EndPageInstrumentationData
     {
         HttpContext = httpContext,
         Path        = path,
     });
 }
Ejemplo n.º 13
0
 public virtual void OnAfterViewPage(
     IProxyPage page,
     IProxyViewContext viewContext,
     IProxyActionDescriptor actionDescriptor,
     IProxyHttpContext httpContext)
 {
     AfterViewPage = new OnAfterViewPageEventData()
     {
         Page             = page,
         ViewContext      = viewContext,
         ActionDescriptor = actionDescriptor,
         HttpContext      = httpContext,
     };
 }
Ejemplo n.º 14
0
 public virtual void OnBeginPageInstrumentationContext(
     IProxyHttpContext httpContext,
     string path,
     int position,
     int length,
     bool isLiteral)
 {
     PageInstrumentationData.Add(new BeginPageInstrumentationData
     {
         HttpContext = httpContext,
         Path        = path,
         Position    = position,
         Length      = length,
         IsLiteral   = isLiteral,
     });
 }
Ejemplo n.º 15
0
 public virtual void OnBeginPageInstrumentationContext(
     IProxyHttpContext httpContext,
     string path,
     int position,
     int length,
     bool isLiteral)
 {
     PageInstrumentationData.Add(new BeginPageInstrumentationData
     {
         HttpContext = httpContext,
         Path = path,
         Position = position,
         Length = length,
         IsLiteral = isLiteral,
     });
 }
Ejemplo n.º 16
0
 public virtual void EndRequest(IProxyHttpContext httpContext)
 {
     httpContext?.Features.Get <ActionMetric>()?.Stop();
 }
Ejemplo n.º 17
0
 public virtual void OnBeginRequest(IProxyHttpContext httpContext)
 {
     BeginRequest = new OnBeginRequestEventData()
     {
         HttpContext = httpContext,
     };
 }
Ejemplo n.º 18
0
 public virtual void OnEndPageInstrumentationContext(
     IProxyHttpContext httpContext,
     string path,
     int position,
     int length,
     bool isLiteral)
 {
     PageInstrumentationData.Add(new EndPageInstrumentationData
     {
         HttpContext = httpContext,
         Path = path,
     });
 }