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