Welcome to the navigation

Ullamco laboris aliquip ad exercitation culpa voluptate labore laborum, cillum sunt commodo consectetur mollit ipsum esse incididunt sint ut duis ut dolor deserunt pariatur, tempor. Incididunt nisi excepteur ipsum dolor sit adipisicing lorem in quis nostrud elit, dolore ut non ut et officia eiusmod cillum dolore aliquip tempor ex ea

Yeah, this will be replaced... But please enjoy the search!

Creating your custom HttpControllerContext for Web API

I needed to fiddle a bit in a API method returning a HttpResponseMessage when validating captchas that wasn't included in the model validation.

HttpConfiguration config = new HttpConfiguration();
IHttpRouteData route = new HttpRouteData(new HttpRoute());
HttpRequestMessage req = new HttpRequestMessage();
req.Properties[HttpPropertyKeys.HttpConfigurationKey] = config;
req.Properties[HttpPropertyKeys.HttpRouteDataKey] = route;
HttpControllerContext context = new HttpControllerContext(config, route, req);