Using some examples I am attempting to get SS authentication working in an asp.net MVC application. I am using this line:

authService.RequestContext = System.Web.HttpContext.Current.ToRequestContext();

No matter what I do, I cannot find "ToRequestContext". I believe I've added the proper using:

using ServiceStack.WebHost.Endpoints.Extensions; 

Any suggestions?

有帮助吗?

解决方案

The HttpContext.ToRequestContext() extension method lives in ServiceStack.HttpExtensions, so the correct namespace would be just:

using ServiceStack;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top