using System; using RGB.NET.Core; namespace RGB.NET.Devices.Razer; /// /// /// /// Represents a generic razer-device. (keyboard, mouse, headset, mousepad). /// public abstract class RazerRGBDevice : AbstractRGBDevice, IRazerRGBDevice { #region Constructors /// /// Initializes a new instance of the class. /// /// The generic information provided by razer for the device. /// The queue used to update this device. protected RazerRGBDevice(RazerRGBDeviceInfo info, IUpdateQueue updateQueue) : base(info, updateQueue) { RequiresFlush = true; } #endregion #region Methods /// public override void Dispose() { try { UpdateQueue.Dispose(); } catch { /* at least we tried */ } base.Dispose(); GC.SuppressFinalize(this); } #endregion }