1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 10:08:31 +00:00

Made devices disposable

This commit is contained in:
Darth Affe 2017-04-02 11:17:16 +02:00
parent a2411dd2d3
commit bce3b1785a
2 changed files with 9 additions and 2 deletions

View File

@ -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>

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