History

GSF.Web.Model: Refactored razor view, data context and web page controller implementations to use an external razor engine instance for wider use-case applicability

Ritchie Carroll committed 10 years ago

Commit 5b5cfbf1 parent ead8c0e9 files · +708 −534Browse files

Showing the changes to Source/Libraries/GSF.Web/Model/RazorViewResolutionMode.cs (1 of 9 files). Show all

Unified · Split

Source/Libraries/GSF.Web/Model/RazorViewResolutionMode.cs+47−0
@@ -0,0 +1,47 @@
1+//******************************************************************************************************
2+// RazorViewResolutionMode.cs - Gbtc
3+//
4+// Copyright � 2016, Grid Protection Alliance. All Rights Reserved.
5+//
6+// Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See
7+// the NOTICE file distributed with this work for additional information regarding copyright ownership.
8+// The GPA licenses this file to you under the MIT License (MIT), the "License"; you may not use this
9+// file except in compliance with the License. You may obtain a copy of the License at:
10+//
11+// http://opensource.org/licenses/MIT
12+//
13+// Unless agreed to in writing, the subject software distributed under the License is distributed on an
14+// "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the
15+// License for the specific language governing permissions and limitations.
16+//
17+// Code Modification History:
18+// ----------------------------------------------------------------------------------------------------
19+// 05/05/2016 - J. Ritchie Carroll
20+// Generated original version of source code.
21+//
22+//******************************************************************************************************
23+
24+namespace GSF.Web.Model
25+{
26+ /// <summary>
27+ /// Defines resolutions modes for Razor view template files.
28+ /// </summary>
29+ public enum RazorViewResolutionMode
30+ {
31+ /// <summary>
32+ /// Resolves template files from a path.
33+ /// </summary>
34+ ResolvePath,
35+ /// <summary>
36+ /// Resolves template files from a path and watches for changes.
37+ /// </summary>
38+ /// <remarks>
39+ /// This should only be used in debug mode.
40+ /// </remarks>
41+ WatchingResolvePath,
42+ /// <summary>
43+ /// Resolves template files from an embedded resource.
44+ /// </summary>
45+ EmbeddedResource
46+ }
47+}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t