【发布时间】:2016-09-07 13:17:46
【问题描述】:
我需要在 OWIN 启动时填写 HttpContext.Current.Application["Translations"],但 HttpContext.Current 是 null。
我应该在Global.asax.cs 中使用Application_Start() 还是不好的主意?
我有什么选择?
【问题讨论】:
-
HttpContext 在启动时不可用,因为它在没有请求的情况下无法存在。
Begin_Request
标签: asp.net-web-api owin httpcontext