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); }
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); }
private void RegisterInterceptors() { IOrbServices orb = OrbServices.GetSingleton(); m_testInterceptorInit = new TestInterceptorInit(); orb.RegisterPortableInterceptorInitalizer(m_testInterceptorInit); orb.CompleteInterceptorRegistration(); }
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; }