示例#1
0
		public OfflineCompiler(ICodeProviderAdapterFactory codeProviderAdapterFactory, IPreProcessor preProcessor, ICompilationContext context, AspViewCompilerOptions options, IFileSystemAdapter fileSystem)
			: base(codeProviderAdapterFactory, preProcessor, context, options)
		{
			this.fileSystem = fileSystem;
			parameters.GenerateInMemory = false;
			parameters.OutputAssembly = Path.Combine(context.BinFolder.FullName, "CompiledViews.dll");
		}
示例#2
0
		protected AbstractCompiler(ICodeProviderAdapterFactory codeProviderAdapterFactory, IPreProcessor preProcessor, ICompilationContext context, AspViewCompilerOptions options)
		{
			this.preProcessor = preProcessor;
			this.context = context;
			this.options = options;
			codeProvider = codeProviderAdapterFactory.GetAdapter();
			InitialiseCompilerParameters(options.Debug);
		}
示例#3
0
 protected AbstractCompiler(ICodeProviderAdapterFactory codeProviderAdapterFactory, IPreProcessor preProcessor, ICompilationContext context, AspViewCompilerOptions options)
 {
     this.preProcessor = preProcessor;
     this.context      = context;
     this.options      = options;
     codeProvider      = codeProviderAdapterFactory.GetAdapter();
     InitialiseCompilerParameters(options.Debug);
 }
		public OnlineCompiler(ICodeProviderAdapterFactory codeProviderAdapterFactory, IPreProcessor preProcessor, ICompilationContext context, AspViewCompilerOptions options) : base(codeProviderAdapterFactory, preProcessor, context, options)
		{
			parameters.GenerateInMemory = true;
		}
示例#5
0
		public AspViewCompiler(AspViewCompilerOptions options)
		{
			Resolve.Initialize(options.CustomProviders);
			this.options = options;
			InitializeCompilerParameters();
		}
 public OnlineCompiler(ICodeProviderAdapterFactory codeProviderAdapterFactory, IPreProcessor preProcessor, ICompilationContext context, AspViewCompilerOptions options) : base(codeProviderAdapterFactory, preProcessor, context, options)
 {
     parameters.GenerateInMemory = true;
 }
示例#7
0
 public OfflineCompiler(ICodeProviderAdapterFactory codeProviderAdapterFactory, IPreProcessor preProcessor, ICompilationContext context, AspViewCompilerOptions options, IFileSystemAdapter fileSystem)
     : base(codeProviderAdapterFactory, preProcessor, context, options)
 {
     this.fileSystem             = fileSystem;
     parameters.GenerateInMemory = false;
     parameters.OutputAssembly   = Path.Combine(context.BinFolder.FullName, "CompiledViews.dll");
 }
示例#8
0
 public AspViewCompiler(AspViewCompilerOptions options)
 {
     Resolve.Initialize(options.CustomProviders);
     this.options = options;
     InitializeCompilerParameters();
 }