public static void start()
        {
            var info = (IInfo)ORBMiddleware.GetObjectReference("InfoServer", typeof(IInfo));

            info.get_road_info(66);
            info.get_temp("Timisoara");
        }
Exemple #2
0
        public static void start()
        {
            var math = (IMath)ORBMiddleware.GetObjectReference("MathServer", typeof(IMath));

            math.do_add(2.5, 1.4);
            math.do_sqr(16.1);
        }
        public static void test()
        {
            new Thread(() =>
            {
                Thread.CurrentThread.IsBackground = true;

                NamingService.Instance.StartService();
            }).Start();

            ORBMiddleware.RegisterToNamingService("Test", 1324, "TestType");
            Console.WriteLine(ORBMiddleware.GetProviderAddress("Test").ToString());
        }
        public static void start()
        {
            var m = new MathServer();

            ORBMiddleware.Register(MATH_SERVER_NAME, MATH_SERVER_PORT, "math", m);
        }
        public static void start()
        {
            var infoServer = new InfoServer();

            ORBMiddleware.Register(INFO_SERVER_NAME, INFO_SERVER_PORT, "info", infoServer);
        }