// this is the thing that managest public StreamDeckConnection(StartupArguments arguments, ILogger <StreamDeckConnection> logger, EventManager eventManager, IHostApplicationLifetime applicationLifetime) { this.arguments = arguments; this.logger = logger; this.eventManager = eventManager; this.applicationLifetime = applicationLifetime; // find all event types and map out }
public bool TryGetStartupArguments(out StartupArguments startupArguments) { if (!Port.HasValue) { startupArguments = null; return(false); } startupArguments = new StartupArguments() { Info = this.info, PluginUUID = this.pluginUUID, Port = this.Port, RegisterEvent = this.registerEvent }; return(true); }