示例#1
0
        public static IGenericDevice Get(Guid deviceId)
        {
            Chroma.Initialize();

            if (!Instances.ContainsKey(deviceId))
            {
                Instances[deviceId] = new GenericDevice(deviceId);
            }

            return(Instances[deviceId]);
        }
示例#2
0
 /// <summary>
 /// Gets an instance of <see cref="IGenericDevice" /> for
 /// the device with the specified ID.
 /// </summary>
 /// <param name="deviceId">
 /// The <see cref="Guid" /> of the device to get,
 /// valid IDs can be found in <see cref="Devices" />.
 /// </param>
 /// <returns>An instance of <see cref="IGenericDevice" />.</returns>
 public IGenericDevice Get(Guid deviceId)
 {
     return(GenericDevice.Get(deviceId));
 }
示例#3
0
 /// <summary>
 /// Gets an instance of <see cref="IGenericDevice" /> for
 /// the device with the specified ID.
 /// </summary>
 /// <param name="deviceId">
 /// The <see cref="Guid" /> of the device to get,
 /// valid IDs can be found in <see cref="Devices" />.
 /// </param>
 /// <returns>An instance of <see cref="IGenericDevice" />.</returns>
 public IGenericDevice Get(Guid deviceId)
 {
     Log.DebugFormat("Device {0} requested", deviceId);
     return(GenericDevice.Get(deviceId));
 }
示例#4
0
        public static IGenericDevice Get(Guid deviceId)
        {
            Chroma.Initialize();

            if (!Instances.ContainsKey(deviceId))
                Instances[deviceId] = new GenericDevice(deviceId);

            return Instances[deviceId];
        }