public void Dispose()
        {
            var scope = PerWebRequestLifestyleOwinMiddleware.YieldScope();

            if (scope != null)
            {
                scope.Dispose();
            }
        }
 public ILifetimeScope GetScope(CreationContext context)
 {
     return(PerWebRequestLifestyleOwinMiddleware.GetScope());
 }