Пример #1
0
        public static void Main(String[] args) {

            IOrbServices orb = OrbServices.GetSingleton();
            TestInterceptorInit testInterceptorInit = new TestInterceptorInit();
            orb.RegisterPortableInterceptorInitalizer(testInterceptorInit);

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

            orb.CompleteInterceptorRegistration();

            TestInterceptorControlService controlService = 
                new TestInterceptorControlService(testInterceptorInit);
            string objectURIControlService = "interceptorControl";
            RemotingServices.Marshal(controlService, objectURIControlService);

            TestService test = new TestService();
            string objectURI = "test";
            RemotingServices.Marshal(test, objectURI);
            
            Console.WriteLine("server running");
            Thread.Sleep(Timeout.Infinite);
        }
Пример #2
0
        public static void Main(String[] args)
        {
            IOrbServices        orb = OrbServices.GetSingleton();
            TestInterceptorInit testInterceptorInit = new TestInterceptorInit();

            orb.RegisterPortableInterceptorInitalizer(testInterceptorInit);

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

            ChannelServices.RegisterChannel(chan, false);

            orb.CompleteInterceptorRegistration();

            TestInterceptorControlService controlService =
                new TestInterceptorControlService(testInterceptorInit);
            string objectURIControlService = "interceptorControl";

            RemotingServices.Marshal(controlService, objectURIControlService);

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

            RemotingServices.Marshal(test, objectURI);

            Console.WriteLine("server running");
            Thread.Sleep(Timeout.Infinite);
        }
Пример #3
0
        private void RegisterInterceptors()
        {
            IOrbServices orb = OrbServices.GetSingleton();

            m_testInterceptorInit = new TestInterceptorInit();
            orb.RegisterPortableInterceptorInitalizer(m_testInterceptorInit);
            orb.CompleteInterceptorRegistration();
        }
Пример #4
0
 private void RegisterInterceptors() {
     IOrbServices orb = OrbServices.GetSingleton();
     m_testInterceptorInit = new TestInterceptorInit();
     orb.RegisterPortableInterceptorInitalizer(m_testInterceptorInit);
     orb.CompleteInterceptorRegistration();
 }
 public TestInterceptorControlService(TestInterceptorInit interceptorInit) {
     m_interceptorInit = interceptorInit;
 }
 public TestInterceptorControlService(TestInterceptorInit interceptorInit)
 {
     m_interceptorInit = interceptorInit;
 }