mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
adds new ctor to CecPortController to add post activation func
This commit is contained in:
parent
282ea62f83
commit
d6d0e3cfda
1 changed files with 11 additions and 0 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue