public void receive_request_service_contexts(ServerRequestInfo ri) { if (MustNonInterceptCall(ri)) { return; } m_invokedOnInPathReceiveSvcContext = true; ServiceContext context = ri.get_request_service_context(1000); m_contextReceived = (TestServiceContext)m_codec.decode(context.context_data); }
public void receive_request_service_contexts(ServerRequestInfo ri) { object contextAsObject; try { contextAsObject = ri.get_request_service_context(1000); } catch (BAD_PARAM) { contextAsObject = null; } if (contextAsObject != null) { ServiceContext context = (ServiceContext)contextAsObject; TestServiceContext contextReceived = (TestServiceContext)m_codec.decode(context.context_data); ri.set_slot(m_slotId, contextReceived.TestEntry); } }
/// <summary> /// <see cref="omg.org.PortableInterceptor.ServerRequestInterceptor.receive_request_service_contexts"></see> /// </summary> public void receive_request_service_contexts(ServerRequestInfo ri) { object svcCtx = null; try { svcCtx = ri.get_request_service_context(BI_DIR_IIOP.ConstVal); } catch (omg.org.CORBA.BAD_PARAM) { // context not found } if (svcCtx != null) { BiDirIIOPServiceContext receivedCtx = (BiDirIIOPServiceContext)m_codec.decode_value(((ServiceContext)svcCtx).context_data, m_svcContextTypeCode); ServerRequestInfoImpl internalInfo = (ServerRequestInfoImpl)ri; // need access to connection information GiopBidirectionalConnectionManager biDirConManager = (GiopBidirectionalConnectionManager)internalInfo.ConnectionDesc.ConnectionManager; biDirConManager.RegisterBidirectionalConnection(internalInfo.ConnectionDesc, receivedCtx.listen_points); } }
public void receive_request_service_contexts(ServerRequestInfo ri) { if (MustNonInterceptCall(ri)) { return; } m_invokedOnInPathReceiveSvcContext = true; ServiceContext context = ri.get_request_service_context(1000); m_contextReceived = (TestServiceContext)m_codec.decode(context.context_data); }
public void receive_request_service_contexts(ServerRequestInfo ri) { object contextAsObject; try { contextAsObject = ri.get_request_service_context(1000); } catch (BAD_PARAM) { contextAsObject = null; } if (contextAsObject != null) { ServiceContext context = (ServiceContext)contextAsObject; TestServiceContext contextReceived = (TestServiceContext)m_codec.decode(context.context_data); ri.set_slot(m_slotId, contextReceived.TestEntry); } }
/// <summary> /// <see cref="omg.org.PortableInterceptor.ServerRequestInterceptor.receive_request_service_contexts"></see> /// </summary> public void receive_request_service_contexts(ServerRequestInfo ri) { object svcCtx = null; try { svcCtx = ri.get_request_service_context(BI_DIR_IIOP.ConstVal); } catch (omg.org.CORBA.BAD_PARAM) { // context not found } if (svcCtx != null) { BiDirIIOPServiceContext receivedCtx = (BiDirIIOPServiceContext)m_codec.decode_value(((ServiceContext)svcCtx).context_data, m_svcContextTypeCode); ServerRequestInfoImpl internalInfo = (ServerRequestInfoImpl)ri; // need access to connection information GiopBidirectionalConnectionManager biDirConManager = (GiopBidirectionalConnectionManager)internalInfo.ConnectionDesc.ConnectionManager; biDirConManager.RegisterBidirectionalConnection(internalInfo.ConnectionDesc, receivedCtx.listen_points); } }