Exemplo n.º 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;
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Unloads the singleton instance of the PolicyManager
 /// </summary>
 public static void UnloadInstance()
 {
     sInstance = null;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Unloads the singleton instance of the PolicyManager
 /// </summary>
 public static void UnloadInstance()
 {
     sInstance = null;
 }