Welcome to the navigation

Ut sit est adipisicing deserunt sint id et cillum velit nisi lorem nostrud dolor quis sed dolore occaecat aliquip fugiat laboris consequat, ut ipsum in. Ex ut deserunt cupidatat eiusmod proident, et aliquip mollit consequat, aliqua, voluptate sit qui amet, culpa laboris nostrud in duis ea labore velit aute laborum

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);
Please note that this portal is a BETA site , I will continuously improve all functionality and performance during the coming weeks / the author