示例#1
0
 public static PolicyManager GetInstance(IZone zone)
 {
     lock (getInstanceLock) {
         if (sInstance == null)
         {
             sInstance = (PolicyManager)ObjectFactory.GetInstance().CreateInstance(ObjectFactory.ADKFactoryType.POLICY_MANAGER, zone.Agent);
         }
         return sInstance;
     }
 }
示例#2
0
 public static PolicyManager GetInstance(IZone zone)
 {
     lock (getInstanceLock) {
         if (sInstance == null)
         {
             sInstance = (PolicyManager)ObjectFactory.GetInstance().CreateInstance(ObjectFactory.ADKFactoryType.POLICY_MANAGER, zone.Agent);
         }
         return(sInstance);
     }
 }
示例#3
0
 /// <summary>
 /// Unloads the singleton instance of the PolicyManager
 /// </summary>
 public static void UnloadInstance()
 {
     sInstance = null;
 }
示例#4
0
 /// <summary>
 /// Unloads the singleton instance of the PolicyManager
 /// </summary>
 public static void UnloadInstance()
 {
     sInstance = null;
 }