forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIVirtualPathProvider.cs
More file actions
30 lines (23 loc) · 971 Bytes
/
IVirtualPathProvider.cs
File metadata and controls
30 lines (23 loc) · 971 Bytes
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
using System;
using System.Collections.Generic;
using ServiceStack.WebHost.Endpoints;
namespace ServiceStack.Razor.VirtualPath
{
public interface IVirtualPathProvider
{
IAppHost AppHost { get; }
IVirtualDirectory RootDirectory { get; }
string VirtualPathSeparator { get; }
string RealPathSeparator { get; }
string CombineVirtualPath(string basePath, string relativePath);
bool FileExists(string virtualPath);
bool DirectoryExists(string virtualPath);
IVirtualFile GetFile(string virtualPath);
string GetFileHash(string virtualPath);
string GetFileHash(IVirtualFile virtualFile);
IVirtualDirectory GetDirectory(string virtualPath);
IEnumerable<IVirtualFile> GetAllMatchingFiles(string globPattern, int maxDepth = Int32.MaxValue);
bool IsSharedFile(IVirtualFile virtualFile);
bool IsViewFile(IVirtualFile virtualFile);
}
}