I need to build an Owin middle-ware object but not from within the Startup
class. I need to build it from within anywhere else in my code, so I need a reference to the AppBuilder
instance of the application. Is there a way to get that from anywhere else?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- MVC-Routing,Why i can not ignore defaults,The matc
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
相关文章
- 在DotNetFx Owin 环境下调用 opencc.dll 报错
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- What is the best way to create a lock from a web a
You could simply inject
AppBuilder
itself toOwinContext
. But since Owin context only supportsIDisposable
object, wrap it inIDisposable
object and register it.So in everywhere of your code you have access
IAppBuilder
object.