public void ClearInvocationHistory() { m_invokedOnInPathReceiveSvcContext = false; m_invokedOnInPathReceive = false; m_outPathResult = OutPathResult.NotCalled; m_contextReceived = null; }
public void send_other(ServerRequestInfo ri) { if (MustNonInterceptCall(ri)) { return; } m_outPathResult = OutPathResult.Other; }
public void send_exception(ServerRequestInfo ri) { if (MustNonInterceptCall(ri)) { return; } m_outPathResult = OutPathResult.Exception; }
public void ClearInvocationHistory() { m_invokedOnInPathReceiveSvcContext = false; m_invokedOnInPathReceive = false; m_outPathResult = OutPathResult.NotCalled; m_throwExceptionOutPath = null; m_throwExceptionInPathReceive = null; m_throwExceptionInPathReceiveSvcContext = null; }
public void send_other(ServerRequestInfo ri) { if (MustNonInterceptCall(ri)) { return; } m_outPathResult = OutPathResult.Other; if (m_throwExceptionOutPath != null) { Exception toThrow = m_throwExceptionOutPath; m_throwExceptionOutPath = null; // clear, for next call throw toThrow; } }
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); } }