Ejemplo n.º 1
0
 public StreamDeckConfigHost(IStreamDeckConfiguration configuration, ExportConfigArguments arguments, IHostApplicationLifetime applicationLifetime)
 {
     this.configuration       = configuration;
     this.path                = arguments.ManifestExportPath;
     this.codePath            = arguments.CodePath;
     this.applicationLifetime = applicationLifetime;
 }
Ejemplo n.º 2
0
        public bool TryGetExportConfigArguments(out ExportConfigArguments arguments)
        {
            if (string.IsNullOrEmpty(ManifestExportPath))
            {
                arguments = null;
                return(false);
            }

            arguments = new ExportConfigArguments()
            {
                ManifestExportPath = this.ManifestExportPath,
                SdkPath            = this.ManifestExportSdkPath,
            };
            return(true);
        }