Пример #1
0
        private IorProfile GetProfileFor(IiopLocObjAddr objAddr, byte[] objKey, Codec codec,
                                         IList /* TaggedComponent */ additionalComponents)
        {
            IorProfile addrProfile =
                objAddr.GetProfileForAddr(objKey, codec);

            for (int i = 0; i < additionalComponents.Count; i++)
            {
                addrProfile.AddTaggedComponent((TaggedComponent)additionalComponents[i]);
            }
            return(addrProfile);
        }
Пример #2
0
 /// <summary>
 /// creates an IOR from the typeName and the profiles
 /// </summary>
 internal Ior(string typeName, IorProfile[] profiles)
 {
     m_profiles = profiles ?? new IorProfile[0];
     m_typId = typeName;
 }
Пример #3
0
        public void SetUp()
        {
            m_orb = OrbServices.GetSingleton();

            m_profile =
                new InternetIiopProfile(new GiopVersion(1, 2),
                                        "localhost",
                                        1001,
                                        new byte[] { 1, 0, 0, 0 });

            m_clientChannel = new IiopClientChannel();
            ChannelServices.RegisterChannel(m_clientChannel, false);
        }