public ObfuscationContext(ObfuscationContext context) { _resolver = context._resolver; _readerParameters = context._readerParameters; _assemblies = context._assemblies; _satelites = context._satelites; Symbols = context.Symbols; Filter = context.Filter; OutputDirectory = context.OutputDirectory; }
static void Main(string[] args) { var options = new Options(); ICommandLineParser parser = new CommandLineParser(); if (parser.ParseArguments(args, options)) { ObfuscationContext context = new ObfuscationContext(); context.AddSearchDirectory(options.InputDir); context.OutputDirectory = options.OutputDir; foreach (var assembly in options.AssemblyNames) { context.AddAssembly(assembly); } Pipeline p = GetPipeline(options); p.Process(context); System.Console.ReadKey(); } }
public RenamingContext(ObfuscationContext obfuscationContext) : base(obfuscationContext) { DefinitionsRenameMap = new Dictionary<AssemblyNameDefinition, Dictionary<IMemberDefinition, string>>(); }
public void Process(ObfuscationContext context) { while (_steps.Count > 0) { IStep step = (IStep) _steps [0]; step.Process (context); _steps.Remove (step); } }
public override void Process(ObfuscationContext context) { _context = context as RenamingContext; base.Process(context); }