Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. private void Context_Error(object sender, EventArgs e)
  2. {
  3. //foreach (var task in StructuremapMvc.StructureMapDependencyScope.CurrentNestedContainer.GetAllInstances<IRunOnError>())
  4. //{
  5. // task.Execute();
  6. //}
  7. }
  8.  
  9. private void OnContextOnEndRequest(object sender, EventArgs e)
  10. {
  11. //foreach (var task in
  12. // StructuremapMvc.StructureMapDependencyScope.CurrentNestedContainer.GetAllInstances<IRunAfterEachRequest>())
  13. //{
  14. // task.Execute();
  15. //}
  16.  
  17. HttpContextLifecycle.DisposeAndClearAll();
  18. StructuremapMvc.StructureMapDependencyScope.DisposeNestedContainer();
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement