Esempio n. 1
0
 public static void Main(string[] args) {
     // register the channel
     int port = 8087;
     IiopChannel chan = new IiopChannel(port);
     ChannelServices.RegisterChannel(chan, false);
 
     AdderImpl adder = new AdderImpl();
     string objectURI = "adder";
     RemotingServices.Marshal(adder, objectURI);
     
     Console.WriteLine("server running");
     Console.ReadLine();
 }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            // register the channel
            int         port = 8087;
            IiopChannel chan = new IiopChannel(port);

            ChannelServices.RegisterChannel(chan, false);

            AdderImpl adder     = new AdderImpl();
            string    objectURI = "adder";

            RemotingServices.Marshal(adder, objectURI);

            Console.WriteLine("server running");
            Console.ReadLine();
        }