Refactor CORE-231
1 vote

Abstract HTTP Handlers to use IHttpContext rather than HttpContext

Created by Rob Vesse on 5/31/2012 8:00 PM Last Updated by Rob Vesse on 9/27/2012 9:43 PM
%
 (hrs)
Logged: 0  (hrs)

 Description

This task is a follow on from CORE-183

 

The work to be done is in expanding the existing IHttpContext model to be richer and then to refactor all the HTTP Handlers to work off IHttpContext rather than HttpContext.  For integration with ASP.Net conditional compilation using the NO_ASP symbol will be used to add methods which simply wrap the HttpContext in the wrapper class and pass it through to the abstracted handler interfaces.

 

To make this easier may be advisable to define our own equivalent of the IHttpHandler interface which keeps our handler implementations to a standard interface even when not integrating with ASP.Net, this will then make it easier to extend rdfServer because it can just reuse the existing handlers rather than rolling its own

    Rob Vesse (Thursday, September 27, 2012 9:43 PM) #

Moving to unscheduled, this is not a simple refactor and I'd prefer to do it after the stable 1.0.0 release is out

    Rob Vesse (Monday, August 27, 2012 8:44 PM) #

Increasing priority to high, this would be a useful refactor to do for 0.8.0 and it would allow us to strip some duplicate code out of rdfServer and just use the code from the Core Library directly instead