I need to run code before application start and up until now I have used WebActivator to do that but if I understand correctly the OwinStartupAttribute
is more suitable for that but the problem for me is that it runs after Application_Start
in Global.asax
, is this correct or can I configure it to run pre application start?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- MVC-Routing,Why i can not ignore defaults,The matc
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
According to this answer it runs slightly after Application_Start. So if you, just like me need to run code before Application_Start, WebActivator is still the way to go I guess. Do I need a Global.asax.cs file at all if I'm using an OWIN Startup.cs class and move all configuration there?