private SimpleDbContextStorage GetSimpleDbContextStorage()
 {
     HttpContext context = HttpContext.Current;
     SimpleDbContextStorage storage = context.Items[STORAGE_KEY] as SimpleDbContextStorage;
     if (storage == null)
     {
         storage = new SimpleDbContextStorage();
         context.Items[STORAGE_KEY] = storage;
     }
     return storage;
 }
 public void SetDbContextForKey(string factoryKey, DbContext context)
 {
     SimpleDbContextStorage storage = this.GetSimpleDbContextStorage();
     storage.SetDbContextForKey(factoryKey, context);
 }
 public IEnumerable<DbContext> GetAllDbContexts()
 {
     SimpleDbContextStorage storage = this.GetSimpleDbContextStorage();
     return storage.GetAllDbContexts();
 }
 public DbContext GetDbContextForKey(string key)
 {
     SimpleDbContextStorage storage = this.GetSimpleDbContextStorage();
     return storage.GetDbContextForKey(key);
 }