Made devices disposable

This commit is contained in:
DarthAffe committed 2017-04-02 11:17:16 +02:00
1 parent a2411dd2d3
commit bce3b1785a
2 files changed
+9 -2

No files matched your search

@@ -87,6 +87,12 @@ namespace RGB.NET.Core
UpdateLeds(ledsToUpdate); UpdateLeds(ledsToUpdate);
} }
/// <inheritdoc />
public virtual void Dispose()
{
LedMapping.Clear();
}
/// <summary> /// <summary>
/// Performs device specific updates. /// Performs device specific updates.
/// </summary> /// </summary>
+3 -2
View File
@@ -1,11 +1,12 @@
using System.Collections.Generic; using System;
using System.Collections.Generic;
namespace RGB.NET.Core namespace RGB.NET.Core
{ {
/// <summary> /// <summary>
/// Represents a generic RGB-device /// Represents a generic RGB-device
/// </summary> /// </summary>
public interface IRGBDevice : IEnumerable<Led>, IBindable public interface IRGBDevice : IEnumerable<Led>, IBindable, IDisposable
{ {
#region Properties #region Properties