public static IGenericDevice Get(Guid deviceId) { Chroma.Initialize(); if (!Instances.ContainsKey(deviceId)) { Instances[deviceId] = new GenericDevice(deviceId); } return(Instances[deviceId]); }
/// <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)); }
/// <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)); }
public static IGenericDevice Get(Guid deviceId) { Chroma.Initialize(); if (!Instances.ContainsKey(deviceId)) Instances[deviceId] = new GenericDevice(deviceId); return Instances[deviceId]; }