public void send_reply(ServerRequestInfo ri) {
     if (MustNonInterceptCall(ri)) {
         return;
     }
     m_outPathResult = OutPathResult.Reply;
     if (m_contextReceived != null) {
         TestServiceContext resultContextEntry = 
             new TestServiceContext(((TestServiceContext)m_contextReceived).TestEntry);
         ServiceContext context = new ServiceContext(1000, m_codec.encode(resultContextEntry));
         ri.add_reply_service_context(context, true);
     }
 }
 public void send_request(ClientRequestInfo ri) {
     object testEntryBeginAsObject = ri.get_slot(m_slotId);
     if (testEntryBeginAsObject != null) {
         int testEntryBegin = (int)testEntryBeginAsObject;
         TestServiceContext contextEntry = new TestServiceContext();
         contextEntry.TestEntry = testEntryBegin;
         ServiceContext context = new ServiceContext(1000,
                                                 m_codec.encode(contextEntry));
         ri.add_request_service_context(context, true);
     }
 }
 public void send_reply(ServerRequestInfo ri) {
     object testEntryAsObject = ri.get_slot(m_slotId);
     if (testEntryAsObject != null) {
         int entryResult = (int)testEntryAsObject;
         TestServiceContext resultContextEntry = 
             new TestServiceContext(entryResult);
         ServiceContext context = new ServiceContext(1000, m_codec.encode(resultContextEntry));
         ri.add_reply_service_context(context, true);
     }
 }
 public void send_request(ClientRequestInfo ri) {            
     if (MustNonInterceptCall(ri)) {
         return;
     }
     m_invokedOnOutPath = true;
     TestServiceContext contextEntry = new TestServiceContext();
     contextEntry.TestEntry = m_contextEntryBegin;
     ServiceContext context = new ServiceContext(1000,
                                                 m_codec.encode(contextEntry));
     ri.add_request_service_context(context, true);
     try {
         TaggedComponent taggedComponentEnc = ri.get_effective_component(1000);
         omg.org.CORBA.TypeCode typeCode = 
             omg.org.CORBA.OrbServices.GetSingleton().create_tc_for_type(typeof(TestComponent));
         m_taggedComponent = m_codec.decode_value(taggedComponentEnc.component_data, typeCode);
     } catch (BAD_PARAM) {
         m_taggedComponent = null;
     }
 }