HtmlFormat
Assembly: ServiceStack.dll
View Source
Declaration
public class HtmlFormat : IPlugin, IHasStringId, IHasId<string>
Properties
Id
View Source
Declaration
public string Id { get; set; }
PathTemplates
View Source
Declaration
public Dictionary<string, string> PathTemplates { get; set; }
ResolveTemplate
View Source
Declaration
public Func<IRequest, string> ResolveTemplate { get; set; }
Fields
TitleFormat
View Source
Declaration
public static string TitleFormat
HtmlTitleFormat
View Source
Declaration
public static string HtmlTitleFormat
Humanize
View Source
Declaration
public static bool Humanize
Methods
DefaultResolveTemplate(IRequest)
View Source
Declaration
public string DefaultResolveTemplate(IRequest req)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
Register(IAppHost)
View Source
Declaration
public void Register(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
SerializeToStreamAsync(IRequest, Object, Stream)
View Source
Declaration
public async Task SerializeToStreamAsync(IRequest req, object response, Stream outputStream)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
System.IO.Stream | outputStream |
ReplaceTokens(String, IRequest)
View Source
Declaration
public static string ReplaceTokens(string html, IRequest req)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | html |
ServiceStack.Web.IRequest | req |