/// <summary>
 /// Constructs a stashbox dependency resolver.
 /// </summary>
 /// <param name="scopeProvider">The per request scope provider.</param>
 public StashboxDependencyResolver(StashboxPerRequestScopeProvider scopeProvider)
 {
     this.scopeProvider = scopeProvider;
 }
 /// <inheritdoc />
 public void Init(HttpApplication context)
 {
     context.EndRequest += (sender, e) => StashboxPerRequestScopeProvider.TerminateScope();
 }