문제

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