Skip to main content

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

ServiceStack.IO.IVirtualFile

Parameters
TypeName
System.StringvirtualPath

AssertFile(IVirtualPathProvider, String)

View Source
Declaration
public IVirtualFile AssertFile(IVirtualPathProvider vfs, string virtualPath)
Returns

ServiceStack.IO.IVirtualFile

Parameters
TypeName
ServiceStack.IO.IVirtualPathProvidervfs
System.StringvirtualPath

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
TypeName
System.Stringkey
System.Func<System.String,ReadOnlyMemory<System.Byte>>handler