コード例 #1
0
 public void Release()
 {
     if (pFactory != null)
     {
         ProtocolFactoryManager.UnRegisterProtocolFactory(pFactory);
         pFactory = null;
     }
     //if (libHandler != null)
     //{
     //    AppDomain.Unload(appDomain);
     //}
 }
コード例 #2
0
 public bool ConfigFactory()
 {
     if (getFactory == null)
     {
         return(true);
     }
     pFactory = getFactory(config);
     if (pFactory == null)
     {
         return(true);
     }
     if (pFactory.RegisterProtocolFactory())
     {
         INFO("Loaded factory from application {0}", config[CONF_APPLICATION_NAME]);
         return(true);
     }
     FATAL("Unable to register factory exported by application {0}", config[CONF_APPLICATION_NAME]);
     return(false);
 }