protected virtual Configuration Configuration(string assemblyLocation) { Configuration configuration = new Configuration(assemblyLocation); configuration.TraceSwitch.Level = TraceLevel.Info; return configuration; }
public InstrumentationPipeline(Configuration configuration) { _context = new InstrumentationContext(configuration); }
private static Configuration GetConfiguration(ProgramOptions options) { Configuration configuration = new Configuration(options.Target); configuration.CaseSensitive = options.CaseSensitive; configuration.PreserveDebugInfo = options.Debug; if (options.Verbose) { configuration.TraceSwitch.Level = options.PrettyVerbose ? TraceLevel.Verbose : TraceLevel.Info; } foreach (TypeFilterFactory factory in options.Filters) { configuration.AddFilter(factory()); } return configuration; }
public InstrumentationContext(Configuration configuration) { Init(configuration, LoadAssembly(configuration)); }
public InstrumentationContext(Configuration configuration, AssemblyDefinition assembly) { Init(configuration, assembly); }
private static AssemblyDefinition LoadAssembly(Configuration configuration) { return AssemblyDefinition.ReadAssembly(configuration.AssemblyLocation); }
private void Init(Configuration configuration, AssemblyDefinition assembly) { Configuration = configuration; ConfigureCompactFrameworkAssemblyPath(assembly); SetupAssembly(assembly); }