C# 클래스 ServiceStack.Razor.Managers.RazorPageResolver

A common hook into ServiceStack and the hosting infrastructure used to resolve requests.
상속: ServiceStack.Host.Handlers.ServiceStackHandlerBase, IViewEngine
파일 보기 프로젝트 열기: nustack/ServiceStack 1 사용 예제들

공개 메소드들

메소드 설명
CatchAllHandler ( string httpmethod, string pathInfo, string filepath ) : IHttpHandler
CreateRequest ( IRequest request, string operationName ) : object
EnsureCompiled ( ServiceStack.Razor.Managers.RazorPage page, IResponse response ) : void
FindRazorPage ( IRequest httpReq, object model ) : ServiceStack.Razor.Managers.RazorPage
GetResponse ( IRequest httpReq, object request ) : object
HasView ( string viewName, IRequest httpReq = null ) : bool
ProcessRequest ( IRequest httpReq, IResponse httpRes, object dto ) : bool

Called by the HtmlFormat:IPlugin who checks to see if any registered view engines can handle the response DTO. If this view engine can handle the response DTO, then process it, otherwise, returning false will allow another view engine to attempt to process it. If no view engines can process the DTO, HtmlFormat will simply handle it itself.

ProcessRequest ( IRequest httpReq, IResponse httpRes, string operationName ) : void

This is called by the hosting environment via CatchAll usually for content pages.

RazorPageResolver ( IRazorConfig config, RazorViewManager viewManager ) : System
RenderPartial ( string pageName, object model, bool renderHtml, StreamWriter writer, HtmlHelper htmlHelper ) : string
ResolveAndExecuteRazorPage ( IRequest httpReq, IResponse httpRes, object model, ServiceStack.Razor.Managers.RazorPage razorPage = null ) : IRazorView

비공개 메소드들

메소드 설명
CreateRazorPageInstance ( IRequest httpReq, IResponse httpRes, object dto, ServiceStack.Razor.Managers.RazorPage razorPage ) : IRazorView
ExecuteRazorPageWithLayout ( IRequest httpReq, IResponse httpRes, object model, IRazorView page, Func layout ) : string>.Tuple
PrepareAndSetModel ( IRazorView page, IRequest httpReq, object dto ) : void

메소드 상세

CatchAllHandler() 공개 메소드

public CatchAllHandler ( string httpmethod, string pathInfo, string filepath ) : IHttpHandler
httpmethod string
pathInfo string
filepath string
리턴 IHttpHandler

CreateRequest() 공개 메소드

public CreateRequest ( IRequest request, string operationName ) : object
request IRequest
operationName string
리턴 object

EnsureCompiled() 공개 메소드

public EnsureCompiled ( ServiceStack.Razor.Managers.RazorPage page, IResponse response ) : void
page ServiceStack.Razor.Managers.RazorPage
response IResponse
리턴 void

FindRazorPage() 공개 메소드

public FindRazorPage ( IRequest httpReq, object model ) : ServiceStack.Razor.Managers.RazorPage
httpReq IRequest
model object
리턴 ServiceStack.Razor.Managers.RazorPage

GetResponse() 공개 메소드

public GetResponse ( IRequest httpReq, object request ) : object
httpReq IRequest
request object
리턴 object

HasView() 공개 메소드

public HasView ( string viewName, IRequest httpReq = null ) : bool
viewName string
httpReq IRequest
리턴 bool

ProcessRequest() 공개 메소드

Called by the HtmlFormat:IPlugin who checks to see if any registered view engines can handle the response DTO. If this view engine can handle the response DTO, then process it, otherwise, returning false will allow another view engine to attempt to process it. If no view engines can process the DTO, HtmlFormat will simply handle it itself.
public ProcessRequest ( IRequest httpReq, IResponse httpRes, object dto ) : bool
httpReq IRequest
httpRes IResponse
dto object
리턴 bool

ProcessRequest() 공개 메소드

This is called by the hosting environment via CatchAll usually for content pages.
public ProcessRequest ( IRequest httpReq, IResponse httpRes, string operationName ) : void
httpReq IRequest
httpRes IResponse
operationName string
리턴 void

RazorPageResolver() 공개 메소드

public RazorPageResolver ( IRazorConfig config, RazorViewManager viewManager ) : System
config IRazorConfig
viewManager RazorViewManager
리턴 System

RenderPartial() 공개 메소드

public RenderPartial ( string pageName, object model, bool renderHtml, StreamWriter writer, HtmlHelper htmlHelper ) : string
pageName string
model object
renderHtml bool
writer System.IO.StreamWriter
htmlHelper HtmlHelper
리턴 string

ResolveAndExecuteRazorPage() 공개 메소드

public ResolveAndExecuteRazorPage ( IRequest httpReq, IResponse httpRes, object model, ServiceStack.Razor.Managers.RazorPage razorPage = null ) : IRazorView
httpReq IRequest
httpRes IResponse
model object
razorPage ServiceStack.Razor.Managers.RazorPage
리턴 IRazorView