public void Compiler_Compiles()
        {
            // ViewSourceLoader
            // ViewsFolder
            // Target Bin Folder
            //

            ICodeProviderAdapterFactory codeProviderAdapterFactory = new MockedCodeProviderAdapterFactory();
            IPreProcessor       preProcessor = new MockedPreProcessor();
            var                 basePath     = AppDomain.CurrentDomain.BaseDirectory;
            ICompilationContext context      = new CompilationContext(
                new DirectoryInfo(basePath),
                new DirectoryInfo(basePath),
                new DirectoryInfo(basePath),
                new DirectoryInfo(basePath));
            var options = new AspViewCompilerOptions();

            var compiler = new OnlineCompiler(
                codeProviderAdapterFactory, preProcessor, context, options);

            var compiledViews = compiler.Execute();
        }
Пример #2
0
		public void Compiler_Compiles()
		{
			// ViewSourceLoader 
			// ViewsFolder
			// Target Bin Folder
			// 

			ICodeProviderAdapterFactory codeProviderAdapterFactory = new MockedCodeProviderAdapterFactory();
			IPreProcessor preProcessor = new MockedPreProcessor();
			string basePath = AppDomain.CurrentDomain.BaseDirectory;
			ICompilationContext context = new CompilationContext(
				new DirectoryInfo(basePath),
				new DirectoryInfo(basePath),
				new DirectoryInfo(basePath),
				new DirectoryInfo(basePath));
			AspViewCompilerOptions options = new AspViewCompilerOptions();

			OnlineCompiler compiler = new OnlineCompiler(
				codeProviderAdapterFactory, preProcessor, context, options);

			Assembly compiledViews = compiler.Execute();


		}
Пример #3
0
 public AspViewEngineOptions(string actionExtension, AspViewCompilerOptions compilerOptions)
 {
     _actionExtension = actionExtension;
     _compilerOptions = compilerOptions;
 }
Пример #4
0
 public AspViewEngineOptions()
 {
     _actionExtension = ".aspx";
     _compilerOptions = new AspViewCompilerOptions();
 }
Пример #5
0
		public AspViewEngineOptions(AspViewCompilerOptions compilerOptions)
		{
			this.compilerOptions = compilerOptions;
		}
Пример #6
0
		public AspViewEngineOptions(string actionExtension, AspViewCompilerOptions compilerOptions)
		{
			_actionExtension = actionExtension;
			_compilerOptions = compilerOptions;
		}
Пример #7
0
		public AspViewEngineOptions()
		{
			_actionExtension = ".aspx";
			_compilerOptions = new AspViewCompilerOptions();
		}
		public AspViewEngineOptions(AspViewCompilerOptions compilerOptions)
		{
			this.compilerOptions = compilerOptions;
			ViewProperties = ViewPropertiesInclusionOptions.RequestParams;
		}
 public AspViewEngineOptions(AspViewCompilerOptions compilerOptions)
 {
     this.compilerOptions = compilerOptions;
     ViewProperties       = ViewPropertiesInclusionOptions.RequestParams;
 }