Exemplo n.º 1
0
 public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
 {
     var work = CurrentWorkAccessor.Get();
     var testService = work.CreateComponent<ITestService>();
     var cnt = actionExecutedContext.Response.Content as ObjectContent<string>;
     cnt.Value = cnt.Value.ToString() + $" Id In Filter = {testService.Id}";
 }
Exemplo n.º 2
0
 private void RefaceHttpApplication_EndRequest(object sender, EventArgs e)
 {
     try
     {
         IWork work = CurrentWorkAccessor.Get();
         work.PublishEvent(new EndRequestEvent(this, HttpContext.Current));
         work.Dispose();
     }
     catch (Exception)
     {
     }
 }