public void Run() { Console.WriteLine("Testing Pyro handshake and custom annotations. Make sure the server from the pyro handshake example is running."); Console.WriteLine("Pyrolite version: " + Config.PYROLITE_VERSION); Console.WriteLine("serializer used: {0}", Config.SERIALIZER); if (Config.SERIALIZER == Config.SerializerType.serpent) { Console.WriteLine("note that for the serpent serializer, you need to have the Razorvine.Serpent assembly available."); } Console.WriteLine("\r\nEnter the server URI: "); string uri = Console.ReadLine().Trim(); Console.WriteLine("Enter the secret code as printed by the server: "); string secret = Console.ReadLine().Trim(); using (dynamic p = new CustomAnnotationsProxy(new PyroURI(uri))) { p.pyroHandshake = secret; p.correlation_id = Guid.NewGuid(); Console.WriteLine("correlation id set to: {0}", p.correlation_id); p.ping(); Console.WriteLine("Connection Ok!"); } }
public static void Run() { Console.WriteLine("Testing Pyro handshake and custom annotations. Make sure the server from the pyro handshake example is running."); Console.WriteLine("Pyrolite version: " + Config.PYROLITE_VERSION); Console.WriteLine("\r\nEnter the server URI: "); string uri = Console.ReadLine().Trim(); Console.WriteLine("Enter the secret code as printed by the server: "); string secret = Console.ReadLine().Trim(); using (dynamic p = new CustomAnnotationsProxy(new PyroURI(uri))) { p.pyroHandshake = secret; p.correlation_id = Guid.NewGuid(); Console.WriteLine("correlation id set to: {0}", p.correlation_id); p.ping(); Console.WriteLine("Connection Ok!"); } }
public void Run() { Console.WriteLine("Testing Pyro handshake and custom annotations. Make sure the server from the pyro handshake example is running."); Console.WriteLine("Pyrolite version: "+Config.PYROLITE_VERSION); Console.WriteLine("serializer used: {0}", Config.SERIALIZER); if(Config.SERIALIZER==Config.SerializerType.serpent) Console.WriteLine("note that for the serpent serializer, you need to have the Razorvine.Serpent assembly available."); Console.WriteLine("\r\nEnter the server URI: "); string uri = Console.ReadLine().Trim(); Console.WriteLine("Enter the secret code as printed by the server: "); string secret = Console.ReadLine().Trim(); using(dynamic p = new CustomAnnotationsProxy(new PyroURI(uri))) { p.pyroHandshake = secret; p.correlation_id = Guid.NewGuid(); Console.WriteLine("correlation id set to: {0}", p.correlation_id); p.ping(); Console.WriteLine("Connection Ok!"); } }