コード例 #1
0
ファイル: TestService.cs プロジェクト: divyang4481/IIOPNet
        public Hashtable CreateHashtableWithByRefElems(int nrOfElems)
        {
            Hashtable result = new Hashtable();

            for (int i = 0; i < nrOfElems; i++)
            {
                result[i] = new TestServiceImpl();
            }
            return(result);
        }
コード例 #2
0
        public static void Main(String[] args) {
            InitCustomMapping();

            // register the channel
            int port = 8087;
            IiopChannel chan = new IiopChannel(port);
            ChannelServices.RegisterChannel(chan, false);

            TestServiceImpl test = new TestServiceImpl();
            string objectURI = "test";
            RemotingServices.Marshal(test, objectURI);

            Console.WriteLine("server running");
            Console.ReadLine();
        }
コード例 #3
0
        public static void Main(String[] args)
        {
            InitCustomMapping();

            // register the channel
            int         port = 8087;
            IiopChannel chan = new IiopChannel(port);

            ChannelServices.RegisterChannel(chan, false);

            TestServiceImpl test      = new TestServiceImpl();
            string          objectURI = "test";

            RemotingServices.Marshal(test, objectURI);

            Console.WriteLine("server running");
            Console.ReadLine();
        }
コード例 #4
0
 public Hashtable CreateHashtableWithByRefElems(int nrOfElems) {
     Hashtable result = new Hashtable();
     for (int i = 0; i <nrOfElems; i++) {
         result[i] = new TestServiceImpl();
     }
     return result;
 }