GetXmlRpcManager() public static method

public static GetXmlRpcManager ( string ip, int port, string relativeUri, bool logReqresp ) : IXmlRpcManager
ip string
port int
relativeUri string
logReqresp bool
return IXmlRpcManager
Esempio n. 1
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));
        }