public static void Shutdown() { if (_Instance != null) { _Instance.Dispose(); _Instance = null; } }
public static void Initialize <T>() { object PossiblePool = Activator.CreateInstance(typeof(T)); if (PossiblePool is IManagedAccountPool) { if (_Instance != null) { _Instance.Dispose(); } _Instance = (IManagedAccountPool)PossiblePool; } }