/// <summary>
 /// 設定所使用的參與者工廠
 /// 目前提供的工廠:LDAP / LocalDB
 /// </summary>
 public void SetParticipantFactory(ParticipantFactoryEnum factory_type)
 {
     switch (factory_type)
     { 
         case ParticipantFactoryEnum.LDAP :
             factory = new LDAPParticipantFactory();
             break;
         case ParticipantFactoryEnum.LocalDB:
             factory = new LocalDBParticipantFactory();
             break;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 設定所使用的參與者工廠
        /// 目前提供的工廠:LDAP / LocalDB
        /// </summary>
        public void SetParticipantFactory(ParticipantFactoryEnum factory_type)
        {
            switch (factory_type)
            {
            case ParticipantFactoryEnum.LDAP:
                factory = new LDAPParticipantFactory();
                break;

            case ParticipantFactoryEnum.LocalDB:
                factory = new LocalDBParticipantFactory();
                break;
            }
        }