Пример #1
0
 /// <summary>
 /// Shutdown the pool and release all devices.
 /// </summary>
 public static void Shutdown()
 {
     if (_Instance != null)
     {
         _Instance.Dispose();
         _Instance = null;
     }
 }
Пример #2
0
        /// <summary>
        /// Protected constructor - code should use DevicePool.Instance
        /// </summary>
        protected DevicePool()
        {
            if (_Instance == null)
            {
                _Instance = this;
            }

            // create two local devices by default?
            AddLocalDevices(2);
        }