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:
parent
a2411dd2d3
commit
bce3b1785a
@ -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>
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user