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