mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-08-31 19:08:29 +00:00
Adds new devinvoke console command to handle overloaded methods
This commit is contained in:
parent
da50272980
commit
276aa11710
3 changed files with 105 additions and 10 deletions
|
|
@ -30,7 +30,7 @@ namespace PepperDash.Essentials.Core
|
|||
public static void AddFactoryForType(string type, Func<DeviceConfig, IKeyed> method)
|
||||
{
|
||||
Debug.Console(0, Debug.ErrorLogLevel.Notice, "Adding factory method for type '{0}'", type);
|
||||
DeviceFactory.FactoryMethods.Add(type, method);
|
||||
DeviceFactory.FactoryMethods.Add(type.ToLower(), method);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue