HtmlModuleContext
Assembly: ServiceStack.dll
View Source
Declaration
public class HtmlModuleContext
Properties
Module
View Source
Declaration
public HtmlModule Module { get; }
Request
View Source
Declaration
public IRequest Request { get; }
VirtualFiles
View Source
Declaration
public IVirtualPathProvider VirtualFiles { get; }
DebugMode
View Source
Declaration
public bool DebugMode { get; }
AppHost
View Source
Declaration
public ServiceStackHost AppHost { get; }
FileContentsResolver
View Source
Declaration
public Func<IVirtualFile, string> FileContentsResolver { get; }
Methods
AssertFile(String)
Resolve file from the Module configured VirtualFiles
View Source
Declaration
public IVirtualFile AssertFile(string virtualPath)
Returns
Parameters
Type | Name |
---|---|
System.String | virtualPath |
AssertFile(IVirtualPathProvider, String)
View Source
Declaration
public IVirtualFile AssertFile(IVirtualPathProvider vfs, string virtualPath)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualPathProvider | vfs |
System.String | virtualPath |
Cache(String, Func<String, ReadOnlyMemory<Byte>>)
View Source
Declaration
public ReadOnlyMemory<byte> Cache(string key, Func<string, ReadOnlyMemory<byte>> handler)
Returns
ReadOnlyMemory<System.Byte>
Parameters
Type | Name |
---|---|
System.String | key |
System.Func<System.String,ReadOnlyMemory<System.Byte>> | handler |