Пример #1
0
 public void ClearInvocationHistory()
 {
     m_invokedOnInPathReceiveSvcContext = false;
     m_invokedOnInPathReceive           = false;
     m_outPathResult   = OutPathResult.NotCalled;
     m_contextReceived = null;
 }
Пример #2
0
 public void send_other(ServerRequestInfo ri)
 {
     if (MustNonInterceptCall(ri))
     {
         return;
     }
     m_outPathResult = OutPathResult.Other;
 }
Пример #3
0
 public void send_exception(ServerRequestInfo ri)
 {
     if (MustNonInterceptCall(ri))
     {
         return;
     }
     m_outPathResult = OutPathResult.Exception;
 }
Пример #4
0
 public void ClearInvocationHistory()
 {
     m_invokedOnInPathReceiveSvcContext = false;
     m_invokedOnInPathReceive           = false;
     m_outPathResult                         = OutPathResult.NotCalled;
     m_throwExceptionOutPath                 = null;
     m_throwExceptionInPathReceive           = null;
     m_throwExceptionInPathReceiveSvcContext = null;
 }
Пример #5
0
 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;
     }
 }
Пример #6
0
 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);
     }
 }
Пример #7
0
 public void send_other(ServerRequestInfo ri) {
     if (MustNonInterceptCall(ri)) {
         return;
     }
     m_outPathResult = OutPathResult.Other;
 }
Пример #8
0
 public void send_exception(ServerRequestInfo ri) {
     if (MustNonInterceptCall(ri)) {
         return;
     }
     m_outPathResult = OutPathResult.Exception;
 }
Пример #9
0
 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);
     }
 }
Пример #10
0
 public void ClearInvocationHistory() {
       m_invokedOnInPathReceiveSvcContext = false;
       m_invokedOnInPathReceive = false;
       m_outPathResult = OutPathResult.NotCalled;
       m_contextReceived = null;
 }
Пример #11
0
 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;
     }
 }
Пример #12
0
 public void ClearInvocationHistory() {
       m_invokedOnInPathReceiveSvcContext = false;
       m_invokedOnInPathReceive = false;
       m_outPathResult = OutPathResult.NotCalled;
       m_throwExceptionOutPath = null;
       m_throwExceptionInPathReceive = null;
       m_throwExceptionInPathReceiveSvcContext = null;
 }