-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContentInspectorModule.cs
More file actions
50 lines (41 loc) · 1.65 KB
/
ContentInspectorModule.cs
File metadata and controls
50 lines (41 loc) · 1.65 KB
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
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Hosting;
using EPiServer.DataAbstraction;
using EPiServer.Framework.TypeScanner;
using EPiServer.Framework.Web.Resources;
using EPiServer.Shell.Modules;
namespace EPiCode.ContentInspector
{
public class ContentInspectorModule : ShellModule
{
public ContentInspectorModule(string name, string routeBasePath, string resourceBasePath)
: base(name, routeBasePath, resourceBasePath)
{
}
public ContentInspectorModule(string name, string routeBasePath, string resourceBasePath,
ITypeScannerLookup typeScannerLookup, VirtualPathProvider virtualPathProvider)
: base(name, routeBasePath, resourceBasePath, typeScannerLookup, virtualPathProvider)
{
}
public override ModuleViewModel CreateViewModel(ModuleTable moduleTable,
IClientResourceService clientResourceService)
{
var contentInspectorViewModel = new ContentInspectorModelViewModel(this, clientResourceService);
contentInspectorViewModel.rasterizeBaseUrl = ConfigurationManager.AppSettings["ContentInspector.RasterizeBaseUrl"]; // "/static/css/";
return contentInspectorViewModel;
}
}
public class ContentInspectorModelViewModel : ModuleViewModel
{
public ContentInspectorModelViewModel(ShellModule module, IClientResourceService clientResourceService)
: base(module, clientResourceService)
{
}
public string rasterizeBaseUrl { get; set; }
}
}