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
Type | Name |
---|---|
System.String | viewName |
ServiceStack.Web.IRequest | httpReq |
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
Type | Name |
---|---|
System.String | pageName |
System.Object | model |
System.Boolean | renderHtml |
System.IO.StreamWriter | writer |
ServiceStack.Html.IHtmlContext | htmlHelper |
ProcessRequestAsync(IRequest, Object, Stream)
View Source
Declaration
Task<bool> ProcessRequestAsync(IRequest req, object dto, Stream outputStream)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | dto |
System.IO.Stream | outputStream |