mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 10:08:31 +00:00
Removed generic constraint from IDeviceProviderLoader
This commit is contained in:
parent
ce745f0b6e
commit
0b41bb1b02
@ -2,10 +2,9 @@
|
|||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a generic device provider loaded used to dynamically load devices into an application.
|
/// Represents a generic device provider loaded used to dynamically load devices into an application.
|
||||||
|
/// This class should always provide an empty public constructor!
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T"></typeparam>
|
public interface IRGBDeviceProviderLoader
|
||||||
public interface IRGBDeviceProviderLoader<T>
|
|
||||||
where T : class, IRGBDeviceProviderLoader<T>, new()
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates if the returned device-provider needs some specific initialization before use.
|
/// Indicates if the returned device-provider needs some specific initialization before use.
|
||||||
|
|||||||
@ -10,15 +10,15 @@ namespace RGB.NET.Core
|
|||||||
|
|
||||||
// ReSharper disable UnusedMember.Global
|
// ReSharper disable UnusedMember.Global
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Loads all devices the given by the <see cref="IRGBDeviceProvider"/> provided by the give <see cref="IRGBDeviceProviderLoader{T}"/>.
|
/// Loads all devices the given by the <see cref="IRGBDeviceProvider"/> provided by the give <see cref="IRGBDeviceProviderLoader"/>.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="deviceProviderLoader">The <see cref="IRGBDeviceProviderLoader{T}"/> which provides the <see cref="IRGBDeviceProvider"/> to load the devices from.</param>
|
/// <param name="deviceProviderLoader">The <see cref="IRGBDeviceProviderLoader"/> which provides the <see cref="IRGBDeviceProvider"/> to load the devices from.</param>
|
||||||
/// <param name="loadFilter">Specifies which types of devices to load.</param>
|
/// <param name="loadFilter">Specifies which types of devices to load.</param>
|
||||||
/// <param name="exclusiveAccessIfPossible">Specifies whether the application should request exclusive access of possible or not.</param>
|
/// <param name="exclusiveAccessIfPossible">Specifies whether the application should request exclusive access of possible or not.</param>
|
||||||
/// <param name="throwExceptions">Specifies whether exception during the initialization sequence should be thrown or not.</param>
|
/// <param name="throwExceptions">Specifies whether exception during the initialization sequence should be thrown or not.</param>
|
||||||
public void LoadDevices<T>(IRGBDeviceProviderLoader<T> deviceProviderLoader, RGBDeviceType loadFilter = RGBDeviceType.All,
|
public void LoadDevices<T>(IRGBDeviceProviderLoader deviceProviderLoader, RGBDeviceType loadFilter = RGBDeviceType.All,
|
||||||
bool exclusiveAccessIfPossible = false, bool throwExceptions = false)
|
bool exclusiveAccessIfPossible = false, bool throwExceptions = false)
|
||||||
where T : class, IRGBDeviceProviderLoader<T>, new()
|
where T : class, IRGBDeviceProviderLoader, new()
|
||||||
=> LoadDevices(deviceProviderLoader.GetDeviceProvider(), loadFilter, exclusiveAccessIfPossible, throwExceptions);
|
=> LoadDevices(deviceProviderLoader.GetDeviceProvider(), loadFilter, exclusiveAccessIfPossible, throwExceptions);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@ -5,7 +5,7 @@ namespace RGB.NET.Devices.Asus
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a device provider loaded used to dynamically load asus devices into an application.
|
/// Represents a device provider loaded used to dynamically load asus devices into an application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class AsusDeviceProviderLoader : IRGBDeviceProviderLoader<AsusDeviceProviderLoader>
|
public class AsusDeviceProviderLoader : IRGBDeviceProviderLoader
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ namespace RGB.NET.Devices.CoolerMaster
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a device provider loaded used to dynamically load cooler-master devices into an application.
|
/// Represents a device provider loaded used to dynamically load cooler-master devices into an application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CoolerMasterDeviceProviderLoader : IRGBDeviceProviderLoader<CoolerMasterDeviceProviderLoader>
|
public class CoolerMasterDeviceProviderLoader : IRGBDeviceProviderLoader
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ namespace RGB.NET.Devices.Corsair
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a device provider loaded used to dynamically load corsair devices into an application.
|
/// Represents a device provider loaded used to dynamically load corsair devices into an application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CorsairDeviceProviderLoader : IRGBDeviceProviderLoader<CorsairDeviceProviderLoader>
|
public class CorsairDeviceProviderLoader : IRGBDeviceProviderLoader
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ namespace RGB.NET.Devices.DMX
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a device provider loaded used to dynamically load DMX devices into an application.
|
/// Represents a device provider loaded used to dynamically load DMX devices into an application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DMXDeviceProviderLoader : IRGBDeviceProviderLoader<DMXDeviceProviderLoader>
|
public class DMXDeviceProviderLoader : IRGBDeviceProviderLoader
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ namespace RGB.NET.Devices.Debug
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a device provider loaded used to dynamically load debug devices into an application.
|
/// Represents a device provider loaded used to dynamically load debug devices into an application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DebugDeviceProviderLoader : IRGBDeviceProviderLoader<DebugDeviceProviderLoader>
|
public class DebugDeviceProviderLoader : IRGBDeviceProviderLoader
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ namespace RGB.NET.Devices.Logitech
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a device provider loaded used to dynamically load logitech devices into an application.
|
/// Represents a device provider loaded used to dynamically load logitech devices into an application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class LogitechDeviceProviderLoader : IRGBDeviceProviderLoader<LogitechDeviceProviderLoader>
|
public class LogitechDeviceProviderLoader : IRGBDeviceProviderLoader
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ namespace RGB.NET.Devices.Msi
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a device provider loaded used to dynamically load msi devices into an application.
|
/// Represents a device provider loaded used to dynamically load msi devices into an application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class MsiDeviceProviderLoader : IRGBDeviceProviderLoader<MsiDeviceProviderLoader>
|
public class MsiDeviceProviderLoader : IRGBDeviceProviderLoader
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ namespace RGB.NET.Devices.Novation
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a device provider loaded used to dynamically load novation devices into an application.
|
/// Represents a device provider loaded used to dynamically load novation devices into an application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class NovationDeviceProviderLoader : IRGBDeviceProviderLoader<NovationDeviceProviderLoader>
|
public class NovationDeviceProviderLoader : IRGBDeviceProviderLoader
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ namespace RGB.NET.Devices.Razer
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a device provider loaded used to dynamically load razer devices into an application.
|
/// Represents a device provider loaded used to dynamically load razer devices into an application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RazerDeviceProviderLoader : IRGBDeviceProviderLoader<RazerDeviceProviderLoader>
|
public class RazerDeviceProviderLoader : IRGBDeviceProviderLoader
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ namespace RGB.NET.Devices.Roccat
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a device provider loaded used to dynamically load roccat devices into an application.
|
/// Represents a device provider loaded used to dynamically load roccat devices into an application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class RoccatDeviceProviderLoader : IRGBDeviceProviderLoader<RoccatDeviceProviderLoader>
|
public class RoccatDeviceProviderLoader : IRGBDeviceProviderLoader
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user