Inheritance: Brunet.Messaging.RpcManager
Exemple #1
0
 public new static MockRpcManager GetInstance(Node node)
 {
     if (_instance == null)
     {
         _instance = new MockRpcManager(node.Rrm);
     }
     return(_instance);
 }
Exemple #2
0
        public void InitFixture()
        {
            ConsoleTraceListener myWriter = new ConsoleTraceListener();

            Debug.Listeners.Add(myWriter);
            Node n = new StructuredNode(new AHAddress(new RNGCryptoServiceProvider()));

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