Blame view

netcore/src/Infrastructure/NCC/ViewEngine/Builders/IViewEngineOptionsBuilder.cs 1.36 KB
de2bd2f9   “wangming”   项目初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
  using Microsoft.CodeAnalysis;
  using System;
  using System.Reflection;
  
  namespace NCC.ViewEngine
  {
      /// <summary>
      /// 视图引擎选项构建器
      /// </summary>
      public interface IViewEngineOptionsBuilder
      {
          /// <summary>
          /// 视图编译选项
          /// </summary>
          ViewEngineOptions Options { get; set; }
  
          /// <summary>
          /// 添加程序集引用
          /// </summary>
          /// <param name="assemblyName"></param>
          void AddAssemblyReferenceByName(string assemblyName);
  
          /// <summary>
          /// 添加程序集引用
          /// </summary>
          /// <param name="assembly"></param>
          void AddAssemblyReference(Assembly assembly);
  
          /// <summary>
          /// 添加程序集引用
          /// </summary>
          /// <param name="type"></param>
          void AddAssemblyReference(Type type);
  
          /// <summary>
          /// 添加元数据引用
          /// </summary>
          /// <param name="reference"></param>
          void AddMetadataReference(MetadataReference reference);
  
          /// <summary>
          /// 添加 Using
          /// </summary>
          /// <param name="namespaceName"></param>
          void AddUsing(string namespaceName);
  
          /// <summary>
          /// 添加继承类型
          /// </summary>
          /// <param name="type"></param>
          void Inherits(Type type);
      }
  }