/// <summary> /// Shutdown the pool and release all devices. /// </summary> public static void Shutdown() { if (_Instance != null) { _Instance.Dispose(); _Instance = null; } }
/// <summary> /// Protected constructor - code should use DevicePool.Instance /// </summary> protected DevicePool() { if (_Instance == null) { _Instance = this; } // create two local devices by default? AddLocalDevices(2); }