C# Class ServiceStack.Razor.RazorFormat

Inheritance: IPlugin, IRazorPlugin, IRazorConfig
ファイルを表示 Open project: nustack/ServiceStack Class Usage Examples

Public Properties

Property Type Description
Instance RazorFormat

Protected Properties

Property Type Description
PageResolver ServiceStack.Razor.Managers.RazorPageResolver
ViewManager ServiceStack.Razor.Managers.RazorViewManager

Public Methods

Method Description
AddPage ( string filePath ) : ServiceStack.Razor.Managers.RazorPage
CreateAndRenderToHtml ( string razorContents, object model = null, string layout = null ) : string
CreatePage ( string razorContents ) : ServiceStack.Razor.Managers.RazorPage
CreatePageResolver ( ) : RazorPageResolver
CreateViewManager ( ) : RazorViewManager
FindByPathInfo ( string pathInfo ) : ServiceStack.Razor.Managers.RazorPage
GetPageByName ( string pageName ) : ServiceStack.Razor.Managers.RazorPage
GetPageByPathInfo ( string pathInfo ) : ServiceStack.Razor.Managers.RazorPage
Init ( ) : RazorFormat
ProcessRazorPage ( IRequest httpReq, ServiceStack.Razor.Managers.RazorPage contentPage, object model, IResponse httpRes ) : void
ProcessRequest ( IRequest httpReq, IResponse httpRes, object dto ) : void
RazorFormat ( ) : System
Register ( IAppHost appHost ) : void
RenderToHtml ( ServiceStack.Razor.Managers.RazorPage razorPage, IRazorView &razorView, object model = null, string layout = null ) : string
RenderToHtml ( ServiceStack.Razor.Managers.RazorPage razorPage, object model = null, string layout = null ) : string
RenderToHtml ( string filePath, object model = null, string layout = null ) : string

Private Methods

Method Description
BindToAppHost ( IAppHost appHost ) : void
CreateLiveReload ( RazorViewManager viewManager ) : ILiveReload
DenyPathsWithLeading_ ( string path ) : bool

Method Details

AddPage() public method

public AddPage ( string filePath ) : ServiceStack.Razor.Managers.RazorPage
filePath string
return ServiceStack.Razor.Managers.RazorPage

CreateAndRenderToHtml() public method

public CreateAndRenderToHtml ( string razorContents, object model = null, string layout = null ) : string
razorContents string
model object
layout string
return string

CreatePage() public method

public CreatePage ( string razorContents ) : ServiceStack.Razor.Managers.RazorPage
razorContents string
return ServiceStack.Razor.Managers.RazorPage

CreatePageResolver() public method

public CreatePageResolver ( ) : RazorPageResolver
return ServiceStack.Razor.Managers.RazorPageResolver

CreateViewManager() public method

public CreateViewManager ( ) : RazorViewManager
return ServiceStack.Razor.Managers.RazorViewManager

FindByPathInfo() public method

public FindByPathInfo ( string pathInfo ) : ServiceStack.Razor.Managers.RazorPage
pathInfo string
return ServiceStack.Razor.Managers.RazorPage

GetPageByName() public method

public GetPageByName ( string pageName ) : ServiceStack.Razor.Managers.RazorPage
pageName string
return ServiceStack.Razor.Managers.RazorPage

GetPageByPathInfo() public method

public GetPageByPathInfo ( string pathInfo ) : ServiceStack.Razor.Managers.RazorPage
pathInfo string
return ServiceStack.Razor.Managers.RazorPage

Init() public method

public Init ( ) : RazorFormat
return RazorFormat

ProcessRazorPage() public method

public ProcessRazorPage ( IRequest httpReq, ServiceStack.Razor.Managers.RazorPage contentPage, object model, IResponse httpRes ) : void
httpReq IRequest
contentPage ServiceStack.Razor.Managers.RazorPage
model object
httpRes IResponse
return void

ProcessRequest() public method

public ProcessRequest ( IRequest httpReq, IResponse httpRes, object dto ) : void
httpReq IRequest
httpRes IResponse
dto object
return void

RazorFormat() public method

public RazorFormat ( ) : System
return System

Register() public method

public Register ( IAppHost appHost ) : void
appHost IAppHost
return void

RenderToHtml() public method

public RenderToHtml ( ServiceStack.Razor.Managers.RazorPage razorPage, IRazorView &razorView, object model = null, string layout = null ) : string
razorPage ServiceStack.Razor.Managers.RazorPage
razorView IRazorView
model object
layout string
return string

RenderToHtml() public method

public RenderToHtml ( ServiceStack.Razor.Managers.RazorPage razorPage, object model = null, string layout = null ) : string
razorPage ServiceStack.Razor.Managers.RazorPage
model object
layout string
return string

RenderToHtml() public method

public RenderToHtml ( string filePath, object model = null, string layout = null ) : string
filePath string
model object
layout string
return string

Property Details

Instance public_oe static_oe property

public static RazorFormat,ServiceStack.Razor Instance
return RazorFormat

PageResolver protected_oe property

protected RazorPageResolver,ServiceStack.Razor.Managers PageResolver
return ServiceStack.Razor.Managers.RazorPageResolver

ViewManager protected_oe property

protected RazorViewManager,ServiceStack.Razor.Managers ViewManager
return ServiceStack.Razor.Managers.RazorViewManager