I define an objectscope in the BeginRequest event, like this:
app.Context.Items["ObjectScopeProvider"] = Database.Get("MyDatabaseConnection").GetObjectScope();
And use it anywhere I want during the current request, like this:
IObjectScope osp = (IObjectScope) Context.Items["ObjectScopeProvider"];
I do not use any cleanup code - at all.
1. Maybe I should do some "cleaning" up?
2. Do you see any "danger" in this super simple setup?