public ExportTask(ExportProjectCommand owner, ModuleDef[] modules) { this.owner = owner; this.modules = modules; this.cancellationTokenSource = new CancellationTokenSource(); 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; } }
public DnSpyDecompiler() { this.files = new List <string>(); this.asmPaths = new List <string>(); this.userGacPaths = new List <string>(); this.gacFiles = new List <string>(); this.decompilationContext = new DecompilationContext(); this.moduleContext = ModuleDef.CreateModuleContext(true); this.assemblyResolver = (AssemblyResolver)moduleContext.AssemblyResolver; this.assemblyResolver.EnableTypeDefCache = true; this.bamlDecompiler = TryLoadBamlDecompiler(); this.decompileBaml = bamlDecompiler != null; this.reservedOptions = GetReservedOptions(); var langs = new List <ILanguage>(); langs.AddRange(GetAllLanguages()); langs.Sort((a, b) => a.OrderUI.CompareTo(b.OrderUI)); this.allLanguages = langs.ToArray(); }
public ExportTask(ExportProjectCommand owner, ModuleDef[] modules) { this.owner = owner; this.modules = modules; this.cancellationTokenSource = new CancellationTokenSource(); this.dispatcher = Dispatcher.CurrentDispatcher; if (owner.bamlDecompiler != null) this.bamlDecompiler = owner.bamlDecompiler.Value; }