Call NHibernate Repository from HttpApplication.Init()
In S#Arch based web application I need to read some data during the application initialization. From the first point, the best place - HttpApplication.Application_Start() or HttpApplicati开发者_运维知识库on.Init()
But, Application_Start isn't applicable as there is no WebSessionStorage yet. Init() seems isn't fit as well, as there is no NHibernateSession.
What would you suggest?
Can't you load it (and load only once) app first request?
nhibernate has some problems initialing on Init(), thats why it is on begin_request on s#arp
精彩评论