public ObfuscatedFile(Options options, IAssemblyClientFactory assemblyClientFactory) { this.assemblyClientFactory = assemblyClientFactory; this.options = options; userStringDecrypterMethods = options.StringDecrypterMethods.Count > 0; options.Filename = Utils.getFullPath(options.Filename); assemblyModule = new AssemblyModule(options.Filename); if (options.NewFilename == null) options.NewFilename = getDefaultNewFilename(); if (string.Equals(options.Filename, options.NewFilename, StringComparison.OrdinalIgnoreCase)) throw new UserException(string.Format("filename is same as new filename! ({0})", options.Filename)); }
public ObfuscatedFile(Options options, ModuleContext moduleContext, IAssemblyClientFactory assemblyClientFactory) { this.assemblyClientFactory = assemblyClientFactory; this.options = options; userStringDecrypterMethods = options.StringDecrypterMethods.Count > 0; options.Filename = Utils.GetFullPath(options.Filename); assemblyModule = new AssemblyModule(options.Filename, moduleContext); if (options.NewFilename == null) { options.NewFilename = GetDefaultNewFilename(); } if (string.Equals(options.Filename, options.NewFilename, StringComparison.OrdinalIgnoreCase)) { throw new UserException(string.Format("filename is same as new filename! ({0})", options.Filename)); } }