Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc 5 检索CurrentUser的最佳方法 当使用MVC5和南茜在OWIN上时,你认为最好的方法是如何持久地检索当前用户/主体?依赖性除了通过各种控制器/模块之外,有时我还需要当前经过身份验证的用户。在过去,我使用过HttpContext.Current.Use_Asp.net Mvc 5_Nancy_Owin - Fatal编程技术网

Asp.net mvc 5 检索CurrentUser的最佳方法 当使用MVC5和南茜在OWIN上时,你认为最好的方法是如何持久地检索当前用户/主体?依赖性除了通过各种控制器/模块之外,有时我还需要当前经过身份验证的用户。在过去,我使用过HttpContext.Current.Use

Asp.net mvc 5 检索CurrentUser的最佳方法 当使用MVC5和南茜在OWIN上时,你认为最好的方法是如何持久地检索当前用户/主体?依赖性除了通过各种控制器/模块之外,有时我还需要当前经过身份验证的用户。在过去,我使用过HttpContext.Current.Use,asp.net-mvc-5,nancy,owin,Asp.net Mvc 5,Nancy,Owin,检索CurrentUser的最佳方法 当使用MVC5和南茜在OWIN上时,你认为最好的方法是如何持久地检索当前用户/主体?依赖性除了通过各种控制器/模块之外,有时我还需要当前经过身份验证的用户。在过去,我使用过HttpContext.Current.User。Thread.Current是选项吗?你会怎么做?尝试为我的框架设置一致性。为什么要一起使用MVC和Nancy?!?我看到的其实是卡塔纳——我以为是MVC5。我的错:(

检索CurrentUser的最佳方法
当使用MVC5和南茜在OWIN上时,你认为最好的方法是如何持久地检索当前用户/主体?依赖性除了通过各种控制器/模块之外,有时我还需要当前经过身份验证的用户。在过去,我使用过HttpContext.Current.User。Thread.Current是选项吗?你会怎么做?尝试为我的框架设置一致性。

为什么要一起使用MVC和Nancy?!?我看到的其实是卡塔纳——我以为是MVC5。我的错:(