コード例 #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();
 }
コード例 #2
0
ファイル: NAdderServer.cs プロジェクト: divyang4481/IIOPNet
        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();
        }