public IAssemblyTransformation CreateTransformation(IAppDomainInfoBroker infoBroker)
        {
            if (_infoProviderName == null)
            throw new InvalidOperationException ("Please initialize options first! (NewTransformer) : Infoprovider must be specified");

              var provider = infoBroker.CreateInfoProviderWrapper<NewTransformerInfoProvider> (_infoProviderName, typeof (MemberID).Assembly.CodeBase);
              var wrapper = new NewTransformerInfoWrapper (provider);

              return new NewTransformer (wrapper, new ILCodeRewriter(), _factoryMakeProtected);
        }
        public IAssemblyTransformation CreateTransformation(IAppDomainInfoBroker infoBroker)
        {
            if (_infoProviderName == null)
            throw new InvalidOperationException ("Please initialize options first! (MethodVirtualizer) : Infoprovider must be specified");

              var provider = infoBroker.CreateInfoProviderWrapper<MethodVirtualizerInfoProvider> (_infoProviderName, typeof (MemberID).Assembly.CodeBase);
              var wrapper = new MethodVirtualizerInfoWrapper (provider);

              return new MethodVirtualizer (wrapper, new ILCodeGenerator());
        }
Esempio n. 3
0
        public IAssemblyTransformation CreateTransformation(IAppDomainInfoBroker infoBroker)
        {
            if (_infoProviderName == null)
            {
                throw new InvalidOperationException("Please initialize options first! (NewTransformer) : Infoprovider must be specified");
            }

            var provider = infoBroker.CreateInfoProviderWrapper <NewTransformerInfoProvider> (_infoProviderName, typeof(MemberID).Assembly.CodeBase);
            var wrapper  = new NewTransformerInfoWrapper(provider);

            return(new NewTransformer(wrapper, new ILCodeRewriter(), _factoryMakeProtected));
        }
        public IAssemblyTransformation CreateTransformation(IAppDomainInfoBroker infoBroker)
        {
            if (_infoProviderName == null)
            {
                throw new InvalidOperationException("Please initialize options first! (MethodVirtualizer) : Infoprovider must be specified");
            }

            var provider = infoBroker.CreateInfoProviderWrapper <MethodVirtualizerInfoProvider> (_infoProviderName, typeof(MemberID).Assembly.CodeBase);
            var wrapper  = new MethodVirtualizerInfoWrapper(provider);

            return(new MethodVirtualizer(wrapper, new ILCodeGenerator()));
        }