Пример #1
0
        /// <summary><see cref="Ch.Elca.Iiop.IServerTransportFactory.SetupClientOptions"/></summary>
        public void SetupClientOptions(IDictionary properties)
        {
            foreach (DictionaryEntry entry in properties)
            {
                switch ((string)entry.Key)
                {
                case CLIENT_AUTHENTICATION:
                    // instantiate client side authentication instance
                    string type = (string)entry.Value;
                    m_clientAuth = (IClientSideAuthentication)Activator.CreateInstance(Type.GetType(type, true));
                    m_clientAuth.SetupClientOptions(properties);
                    break;

                default:
                    // ignore
                    break;
                }
            }
        }
Пример #2
0
 /// <summary><see cref="Ch.Elca.Iiop.IServerTransportFactory.SetupClientOptions"/></summary>
 public void SetupClientOptions(IDictionary properties) {
     foreach (DictionaryEntry entry in properties) {
         switch ((string)entry.Key) {
             case CLIENT_AUTHENTICATION:
                 // instantiate client side authentication instance
                 string type = (string)entry.Value;
                 m_clientAuth = (IClientSideAuthentication)Activator.CreateInstance(Type.GetType(type, true));
                 m_clientAuth.SetupClientOptions(properties);
                 break;
             default:
                 // ignore
                 break;
         }
     }
 }