0

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?

4

1 回答 1

1

HttpContext.ToRequestContext()扩展方法存在于ServiceStack.HttpExtensions中,因此正确的命名空间应该是:

using ServiceStack;
于 2013-10-01T20:50:02.523 回答