public JsonCprServer() { _cometServer = new CometServer(); _cometServer.AddRequestPath("/"); _jsonRpcServer = new JsonRpcServer(); _jsonRpcServer.RegisterMethods(this, "/"); _clientPaths = new Set<string>(); _pendingCalls = new Dictionary<string, JsonCprCallback>(); }
public JsonRpcRequestHandler(JsonRpcServer jsonRpcServer, HttpListenerContext context) { _jsonRpcServer = jsonRpcServer; _context = context; _streamWriter = new StreamWriter(_context.Response.OutputStream); }