Ejemplo n.º 1
0
        void InitAssemblyClient()
        {
            if (assemblyClient == null)
            {
                return;
            }

            assemblyClient.WaitConnected();
            assemblyClient.StringDecrypterService.LoadAssembly(options.Filename);

            if (options.StringDecrypterType == DecrypterType.Delegate)
            {
                assemblyClient.StringDecrypterService.SetStringDecrypterType(AssemblyData.StringDecrypterType.Delegate);
            }
            else if (options.StringDecrypterType == DecrypterType.Emulate)
            {
                assemblyClient.StringDecrypterService.SetStringDecrypterType(AssemblyData.StringDecrypterType.Emulate);
            }
            else
            {
                throw new ApplicationException(string.Format("Invalid string decrypter type '{0}'", options.StringDecrypterType));
            }

            dynamicStringInliner = new DynamicStringInliner(assemblyClient);
            UpdateDynamicStringInliner();
        }
Ejemplo n.º 2
0
        void initAssemblyClient()
        {
            if (assemblyClient == null)
                return;

            assemblyClient.waitConnected();
            assemblyClient.Service.loadAssembly(options.Filename);

            if (options.StringDecrypterType == DecrypterType.Delegate)
                assemblyClient.Service.setStringDecrypterType(AssemblyData.StringDecrypterType.Delegate);
            else if (options.StringDecrypterType == DecrypterType.Emulate)
                assemblyClient.Service.setStringDecrypterType(AssemblyData.StringDecrypterType.Emulate);
            else
                throw new ApplicationException(string.Format("Invalid string decrypter type '{0}'", options.StringDecrypterType));

            dynamicStringInliner = new DynamicStringInliner(assemblyClient);
            updateDynamicStringInliner();
        }