예제 #1
0
 protected override async Task <HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
 {
     if (request.AllowIP())
     {
         return(await base.SendAsync(request, cancellationToken));
     }
     return(request.CreateErrorResponse(HttpStatusCode.Unauthorized
                                        , "Not authorized to view/access this resource"));
 }