1
0
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:
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);
}
/// <inheritdoc />
public virtual void Dispose()
{
LedMapping.Clear();
}
/// <summary>
/// Performs device specific updates.
/// </summary>

View File

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