mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
Made devices disposable
This commit is contained in:
parent
a2411dd2d3
commit
bce3b1785a
@ -87,6 +87,12 @@ namespace RGB.NET.Core
|
||||
UpdateLeds(ledsToUpdate);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual void Dispose()
|
||||
{
|
||||
LedMapping.Clear();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs device specific updates.
|
||||
/// </summary>
|
||||
|
||||
@ -1,11 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RGB.NET.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a generic RGB-device
|
||||
/// </summary>
|
||||
public interface IRGBDevice : IEnumerable<Led>, IBindable
|
||||
public interface IRGBDevice : IEnumerable<Led>, IBindable, IDisposable
|
||||
{
|
||||
#region Properties
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user