コード例 #1
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);
        }
コード例 #2
0
        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());
        }
コード例 #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));
        }
コード例 #4
0
        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()));
        }