Skip to main content

IViewEngine

Assembly: ServiceStack.dll
View Source
Declaration
public interface IViewEngine

Methods

HasView(String, IRequest)

View Source
Declaration
bool HasView(string viewName, IRequest httpReq = null)
Returns

System.Boolean

Parameters
TypeName
System.StringviewName
ServiceStack.Web.IRequesthttpReq

RenderPartial(String, Object, Boolean, StreamWriter, IHtmlContext)

View Source
Declaration
string RenderPartial(string pageName, object model, bool renderHtml, StreamWriter writer = null, IHtmlContext htmlHelper = null)
Returns

System.String

Parameters
TypeName
System.StringpageName
System.Objectmodel
System.BooleanrenderHtml
System.IO.StreamWriterwriter
ServiceStack.Html.IHtmlContexthtmlHelper

ProcessRequestAsync(IRequest, Object, Stream)

View Source
Declaration
Task<bool> ProcessRequestAsync(IRequest req, object dto, Stream outputStream)
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
ServiceStack.Web.IRequestreq
System.Objectdto
System.IO.StreamoutputStream