mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 20:24:57 +00:00
adds new ctor to CecPortController to add post activation func
This commit is contained in:
@@ -20,6 +20,17 @@ namespace PepperDash.Essentials.Core
|
|||||||
|
|
||||||
ICec Port;
|
ICec Port;
|
||||||
|
|
||||||
|
public CecPortController(string key, Func<EssentialsControlPropertiesConfig, ICec> postActivationFunc,
|
||||||
|
EssentialsControlPropertiesConfig config):base(key)
|
||||||
|
{
|
||||||
|
AddPostActivationAction(() =>
|
||||||
|
{
|
||||||
|
Port = postActivationFunc(config);
|
||||||
|
|
||||||
|
Port.StreamCec.CecChange += StreamCec_CecChange;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
public CecPortController(string key, ICec port)
|
public CecPortController(string key, ICec port)
|
||||||
: base(key)
|
: base(key)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user