public void SetUp() { SerializerFactory serFactory = new SerializerFactory(); omg.org.IOP.CodecFactory codecFactory = new Ch.Elca.Iiop.Interception.CodecFactoryImpl(serFactory); omg.org.IOP.Codec codec = codecFactory.create_codec( new omg.org.IOP.Encoding(omg.org.IOP.ENCODING_CDR_ENCAPS.ConstVal, 1, 2)); serFactory.Initalize(new SerializerFactoryConfig(), IiopUrlUtil.Create(codec)); m_argSerFactory = new ArgumentsSerializerFactory(serFactory); }
public void SetUp() { m_serFactory = new SerializerFactory(); omg.org.IOP.CodecFactory codecFactory = new Ch.Elca.Iiop.Interception.CodecFactoryImpl(m_serFactory); m_codec = codecFactory.create_codec( new omg.org.IOP.Encoding(omg.org.IOP.ENCODING_CDR_ENCAPS.ConstVal, 1, 2)); m_iiopUrlUtil = IiopUrlUtil.Create(m_codec, new object[] { Services.CodeSetService.CreateDefaultCodesetComponent(m_codec) }); m_serFactory.Initalize(new SerializerFactoryConfig(), m_iiopUrlUtil); m_handler = new GiopMessageHandler( new ArgumentsSerializerFactory(m_serFactory), GiopHeader.GetDefaultHeaderFlagsForEndian(Endian.BigEndian)); }
public void pre_init(omg.org.PortableInterceptor.ORBInitInfo info) { omg.org.IOP.Codec codec = info.codec_factory.create_codec( new omg.org.IOP.Encoding(omg.org.IOP.ENCODING_CDR_ENCAPS.ConstVal, 1, 2)); Program.m_codec = codec; }
public void SetUp() { m_serFactory = new SerializerFactory(); omg.org.IOP.CodecFactory codecFactory = new Ch.Elca.Iiop.Interception.CodecFactoryImpl(m_serFactory); m_codec = codecFactory.create_codec( new omg.org.IOP.Encoding(omg.org.IOP.ENCODING_CDR_ENCAPS.ConstVal, 1, 2)); m_iiopUrlUtil = IiopUrlUtil.Create(m_codec, new object[] { Services.CodeSetService.CreateDefaultCodesetComponent(m_codec)}); m_serFactory.Initalize(new SerializerFactoryConfig(), m_iiopUrlUtil); m_handler = new GiopMessageHandler( new ArgumentsSerializerFactory(m_serFactory), GiopHeader.GetDefaultHeaderFlagsForEndian(Endian.BigEndian)); }