public ExportTask(ExportProjectCommand owner, ModuleDef[] modules) { this.owner = owner; this.modules = modules; this.cancellationTokenSource = new CancellationTokenSource(); this.cancellationToken = cancellationTokenSource.Token; this.dispatcher = Dispatcher.CurrentDispatcher; if (owner.bamlDecompiler != null) { this.bamlDecompiler = owner.bamlDecompiler.Value; } }
public ExportTask(ExportProjectCommand owner, ModuleDef[] modules) { this.owner = owner; this.modules = modules; cancellationTokenSource = new CancellationTokenSource(); cancellationToken = cancellationTokenSource.Token; dispatcher = Dispatcher.CurrentDispatcher; if (owner.bamlDecompiler != null) { bamlDecompiler = owner.bamlDecompiler.Value; xamlOutputOptionsProvider = owner.xamlOutputOptionsProvider?.Value; } }