SvgFeature
Assembly: ServiceStack.dll
View Source
Declaration
public class SvgFeature : IPlugin, IPostInitPlugin, IHasStringId, IHasId<string>
Properties
Id
View Source
Declaration
public string Id { get; set; }
RoutePath
RequestLogs service Route, default is /metadata/svg
View Source
Declaration
public string RoutePath { get; set; }
ValidateFn
Custom Validation for SVG Metadata Page, return false to deny access, e.g. only allow in DebugMode with: ValidateFn = req => HostContext.DebugMode
View Source
Declaration
public Func<IRequest, bool> ValidateFn { get; set; }
Methods
Register(IAppHost)
View Source
Declaration
public void Register(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
WriteDataUris(StringBuilder, List<String>)
View Source
Declaration
public static void WriteDataUris(StringBuilder sb, List<string> dataUris)
Parameters
Type | Name |
---|---|
System.Text.StringBuilder | sb |
System.Collections.Generic.List<System.String> | dataUris |
WriteAdjacentCss(StringBuilder, List<String>, Dictionary<String, String>)
View Source
Declaration
public static void WriteAdjacentCss(StringBuilder sb, List<string> dataUris, Dictionary<string, string> adjacentCssRules)
Parameters
Type | Name |
---|---|
System.Text.StringBuilder | sb |
System.Collections.Generic.List<System.String> | dataUris |
System.Collections.Generic.Dictionary<System.String,System.String> | adjacentCssRules |
WriteSvgCssFile(IVirtualFiles, String, List<String>, Dictionary<String, String>, Dictionary<String, String>)
View Source
Declaration
public static void WriteSvgCssFile(IVirtualFiles vfs, string name, List<string> dataUris, Dictionary<string, string> adjacentCssRules = null, Dictionary<string, string> appendToCssFiles = null)
Parameters
Type | Name |
---|---|
ServiceStack.IO.IVirtualFiles | vfs |
System.String | name |
System.Collections.Generic.List<System.String> | dataUris |
System.Collections.Generic.Dictionary<System.String,System.String> | adjacentCssRules |
System.Collections.Generic.Dictionary<System.String,System.String> | appendToCssFiles |
AfterPluginsLoaded(IAppHost)
View Source
Declaration
public void AfterPluginsLoaded(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |