Skip to content

Commit e32f1cc

Browse files
author
Michael Cleverdon
committed
mcleverdon forgot interface
1 parent 9dba437 commit e32f1cc

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

RazorEngineCore/IRazorEngineCompilationOptionsBuilder.cs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,53 @@ public interface IRazorEngineCompilationOptionsBuilder
88
{
99
RazorEngineCompilationOptions Options { get; set; }
1010

11+
/// <summary>
12+
/// Loads the Assembly by name and adds it to the Engine's Assembly Reference list
13+
/// </summary>
14+
/// <param name="assemblyName">Full Name of the Assembly to add to the assembly list</param>
1115
void AddAssemblyReferenceByName(string assemblyName);
16+
17+
/// <summary>
18+
/// Adds a loaded assembly to the Engine's Assembly Reference list
19+
/// </summary>
20+
/// <param name="assembly">Assembly to add to the assembly list</param>
1221
void AddAssemblyReference(Assembly assembly);
22+
23+
/// <summary>
24+
/// <para>Adds a type's assembly to the Engine's Assembly Reference list</para>
25+
/// <para>Also adds the type's GenericTypeArguments to the Reference list as well</para>
26+
/// </summary>
27+
/// <param name="type">The type who's assembly should be added to the assembly list</param>
1328
void AddAssemblyReference(Type type);
29+
30+
/// <summary>
31+
/// Adds a MetadataReference for use in the Engine's Assembly Reference generation
32+
/// </summary>
33+
/// <param name="reference">Metadata Reference to add to the Engine's Referenced Assemblies</param>
1434
void AddMetadataReference(MetadataReference reference);
35+
36+
/// <summary>
37+
/// <para>Adds a default <c>using</c> to the compiled view. This is equivalent to adding <c>@using [NAMESPACE]</c> to every template rendered by the engine'</para>
38+
/// Current Defaults:
39+
/// <list type="bullet">
40+
/// <listheader></listheader>
41+
/// <item>System.Linq</item>
42+
/// <item>System.Collections</item>
43+
/// <item>System.Collections.Generic</item>
44+
/// </list>
45+
/// </summary>
46+
/// <param name="namespaceName">Namespace to add to default usings</param>
1547
void AddUsing(string namespaceName);
48+
49+
/// <summary>
50+
/// Adds <c>@inherits</c> directive to the compiled template
51+
/// </summary>
52+
/// <param name="type">Type to <c>@inherits</c> from</param>
1653
void Inherits(Type type);
54+
55+
/// <summary>
56+
/// Enables debug info
57+
/// </summary>
1758
void IncludeDebuggingInfo();
1859
}
1960
}

RazorEngineCore/RazorEngineCompilationOptionsBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void AddMetadataReference(MetadataReference reference)
5959
}
6060

6161
/// <summary>
62-
/// <para>Adds a default <c>using</c> to the compiled view. This is equivalent to adding <c>@using [NAMESPACE]</c> to every template rendered by the engine'</para>
62+
/// <para>Adds a default <c>using</c> to the compiled view. This is equivalent to adding <c>@using [NAMESPACE]</c> to the template rendered by the engine'</para>
6363
/// Current Defaults:
6464
/// <list type="bullet">
6565
/// <listheader></listheader>
@@ -75,9 +75,9 @@ public void AddUsing(string namespaceName)
7575
}
7676

7777
/// <summary>
78-
/// Adds type to @inherit from in the template
78+
/// Adds <c>@inherits</c> directive to the compiled template
7979
/// </summary>
80-
/// <param name="type">Type to @inherit from</param>
80+
/// <param name="type">Type to <c>@inherits</c> from</param>
8181
public void Inherits(Type type)
8282
{
8383
this.Options.Inherits = this.RenderTypeName(type);

0 commit comments

Comments
 (0)