/// <summary> /// Initializes a new instance of the <see cref="HttpService" /> class. /// </summary> public HttpService(IModuleManager moduleManager) { ApplicationInfo = new MemoryItemStorage(); BodyDecoder = new CompositeSerializer(); _service = this; _moduleManager = moduleManager; _encoder = new HttpMessageEncoder(); _decoder = new HttpMessageDecoder(BodyDecoder); _decoder.MessageReceived = OnMessageReceived; }
/// <summary> /// Initializes a new instance of the <see cref="HttpContext" /> class. /// </summary> public HttpContext() { RouteData = new MemoryItemStorage(); }