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}"; }
private void RefaceHttpApplication_EndRequest(object sender, EventArgs e) { try { IWork work = CurrentWorkAccessor.Get(); work.PublishEvent(new EndRequestEvent(this, HttpContext.Current)); work.Dispose(); } catch (Exception) { } }