Hi,
I am currently getting a "The name 'HttpStatusCode' does not exist in the current context" error, on the following highlighted code below:
public class AuthHandler2 : DelegatingHandler
{
private const string BasicAuthResponseHeader = "WWW-Authenticate";
private const string BasicAuthResponseHeaderValue = "Basic";
[Inject]
iUser repository { get; set; }
public AuthHandler2(iUser repository)
{
this.repository = repository;
}
private Task<HttpResponseMessage> Unauthorized(HttpRequestMessage request)
{
var response = request.CreateResponse(HttpStatusCode.Unauthorized);
response.Headers.Add(BasicAuthResponseHeader, BasicAuthResponseHeaderValue) ...
Go to the complete details ...