public void pre_init(ORBInitInfo info) { m_a = new TestInterceptor(String.Empty, "A"); m_b = new TestInterceptor(String.Empty, "B"); m_c = new TestInterceptor(String.Empty, "C"); // WARNING: uses implementation detail to register interceptors in the order A, B, C. // that's not guaranteed to work for non-test-cases. (not specified by standard). // if implementation changes, test-case must be updated. info.add_server_request_interceptor(m_a); info.add_server_request_interceptor(m_b); info.add_server_request_interceptor(m_c); }
public void pre_init(ORBInitInfo info) { m_a = new TestInterceptor(String.Empty, "A"); m_b = new TestInterceptor(String.Empty, "B"); m_c = new TestInterceptor(String.Empty, "C"); // WARNING: uses implementation detail to register interceptors in the order A, B, C. // that's not guaranteed to work for non-test-cases. (not specified by standard). // if implementation changes, test-case must be updated. info.add_client_request_interceptor(m_a); info.add_client_request_interceptor(m_b); info.add_client_request_interceptor(m_c); }
public void SetThrowException(ServerInterceptor interceptor, ServerInterceptionPoint point) { TestInterceptor toModify = GetInterceptor(interceptor); switch (point) { case ServerInterceptionPoint.ReceiveSvcContext: toModify.SetExceptionOnInPathSvcContext(new BAD_PARAM(2000, CompletionStatus.Completed_No)); break; case ServerInterceptionPoint.ReceiveRequest: toModify.SetExceptionOnInPathRequest(new BAD_PARAM(2000, CompletionStatus.Completed_No)); break; case ServerInterceptionPoint.SendResponse: toModify.SetExceptionOnOutPath(new BAD_PARAM(2000, CompletionStatus.Completed_Yes)); break; } }