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?

tereško
  • 58,060
  • 25
  • 98
  • 150
SeanH
  • 584
  • 3
  • 18

1 Answers1

1

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

using ServiceStack;
mythz
  • 141,670
  • 29
  • 246
  • 390
  • Funny enough - this was the first line in the .cs file. Cleaning the project and restarting VS10 a few times resolved it. I feel like an idiot now – SeanH Oct 01 '13 at 21:07