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_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); } }