public IRTransmitter(IServiceProvider services) { if (services == null) { throw new ArgumentNullException(nameof(services)); } _logger = services.GetRequiredService <ILogger <IRTransmitter> >(); _remoteButtonCache = new RemoteButtonCache(services.GetRequiredService <ILogger <RemoteButtonCache> >(), Program.Config); _actionContext = new ActionContext(this); Instance = this; }
public ActionContext(IRTransmitter parent) { _parent = parent; }