public new static MockRpcManager GetInstance(Node node) { if(_instance == null) { ReqrepManager rrm = ReqrepManager.GetInstance(node); _instance = new MockRpcManager(rrm); } return _instance; }
public void InitFixture() { ConsoleTraceListener myWriter = new ConsoleTraceListener(); Debug.Listeners.Add(myWriter); _rpc = XmlRpcManagerClient.GetXmlRpcManager("127.0.0.1", Port, true); Node n = new StructuredNode(new AHAddress(new RNGCryptoServiceProvider())); _mrm = MockRpcManager.GetInstance(n); _server = new XmlRpcManagerServer(Port); _server.Update(n, _mrm); Debug.WriteLine(string.Format("Server started at {0}", Port)); }
public new static MockRpcManager GetInstance(Node node) { if(_instance == null) { _instance = new MockRpcManager(node.Rrm); } return _instance; }