Exemplo n.º 1
0
 internal void Configure(GiopClientConnectionManager conManager, GiopMessageHandler messageHandler,
                         IiopUrlUtil iiopUrlUtil,
                         RetryConfig retries)
 {
     m_conManager     = conManager;
     m_messageHandler = messageHandler;
     m_iiopUrlUtil    = iiopUrlUtil;
     m_retries        = retries;
 }
Exemplo n.º 2
0
        private readonly Hashtable m_typesVerified = new Hashtable(); // contains the verified types for this proxy

        #endregion IFields
        #region IConstructors

        /// <param name="nextSink">the next sink in the channel. In this sink chain, a
        /// IiopClientTransportSink must be present.</param>
        internal IiopClientFormatterSink(IClientChannelSink nextSink, GiopClientConnectionManager conManager,
                                         GiopMessageHandler messageHandler,
                                         IiopUrlUtil iiopUrlUtil,
                                         RetryConfig retries)
        {
            m_nextSink       = nextSink;
            m_conManager     = conManager;
            m_messageHandler = messageHandler;
            m_iiopUrlUtil    = iiopUrlUtil;
            m_retries        = retries;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initalizes the factory. Before initialize is called,
 /// the factory in non-usable.
 /// </summary>
 internal void Initalize(SerializerFactoryConfig config,
                         IiopUrlUtil iiopUrlUtil)
 {
     m_config      = config;
     m_iiopUrlUtil = iiopUrlUtil;
     // the following depend on the config
     m_wideStringSer =
         new StringSerializer(true, config.StringSerializationAllowNull);
     m_nonWideStringSer =
         new StringSerializer(false, config.StringSerializationAllowNull);
 }
Exemplo n.º 4
0
        public void SetUp()
        {
            m_serFactory = new SerializerFactory();
            CodecFactory codecFactory =
                new CodecFactoryImpl(m_serFactory);
            Codec codec =
                codecFactory.create_codec(
                    new Encoding(ENCODING_CDR_ENCAPS.ConstVal, 1, 2));

            m_serFactory.Initalize(new SerializerFactoryConfig(), IiopUrlUtil.Create(codec));
        }
        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);
        }
Exemplo n.º 6
0
 public void SetUp()
 {
     m_serFactory =
         new SerializerFactory();
     omg.org.IOP.CodecFactory codecFactory =
         new 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);
 }
Exemplo n.º 7
0
        private void Initalize()
        {
            m_serializerFactory    = new Ch.Elca.Iiop.Marshalling.SerializerFactory();
            m_codecFactory         = new CodecFactoryImpl(m_serializerFactory);
            m_argSerializerFactory =
                new Ch.Elca.Iiop.Marshalling.ArgumentsSerializerFactory(m_serializerFactory);
            Codec iiopUrlUtilCodec =
                m_codecFactory.create_codec(
                    new Encoding(ENCODING_CDR_ENCAPS.ConstVal,
                                 1, 2));

            m_iiopUrlUtil =
                IiopUrlUtil.Create(iiopUrlUtilCodec, new object[] {
                Ch.Elca.Iiop.Services.CodeSetService.CreateDefaultCodesetComponent(iiopUrlUtilCodec)
            });
            m_serializerFactory.Initalize(m_serializerFactoryConfig,
                                          m_iiopUrlUtil);
        }
Exemplo n.º 8
0
        public void SetUp()
        {
            SerializerFactory serFactory =
                new SerializerFactory();
            CodecFactory codecFactory =
                new CodecFactoryImpl(serFactory);

            m_codec =
                codecFactory.create_codec(
                    new Encoding(ENCODING_CDR_ENCAPS.ConstVal, 1, 2));
            serFactory.Initalize(new SerializerFactoryConfig(),
                                 IiopUrlUtil.Create(m_codec,
                                                    new object[] {
                Services.CodeSetService.CreateDefaultCodesetComponent(m_codec)
            }));
            m_defaultCodeSetTaggedComponent =
                Services.CodeSetService.CreateDefaultCodesetComponent(m_codec);
        }
Exemplo n.º 9
0
 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));
 }
Exemplo n.º 10
0
        public void Setup()
        {
            m_version   = new GiopVersion(1, 2);
            m_hostName  = "localhost";
            m_port      = 8089;
            m_objectKey = new byte[] { 65 };
            m_profile   = new InternetIiopProfile(m_version, m_hostName, m_port, m_objectKey);

            m_serFactory =
                new SerializerFactory();
            CodecFactory codecFactory =
                new Ch.Elca.Iiop.Interception.CodecFactoryImpl(m_serFactory);

            m_codec =
                codecFactory.create_codec(
                    new omg.org.IOP.Encoding(ENCODING_CDR_ENCAPS.ConstVal, 1, 2));
            IiopUrlUtil iiopUrlUtil =
                IiopUrlUtil.Create(m_codec, new object[] {
                Services.CodeSetService.CreateDefaultCodesetComponent(m_codec)
            });

            m_serFactory.Initalize(new SerializerFactoryConfig(), iiopUrlUtil);
        }