Skip to main content

MetadataUtils

Assembly: ServiceStack.dll
View Source
Declaration
public static class MetadataUtils

Methods

ToAppMetadata(INativeTypesMetadata, IRequest)

View Source
Declaration
public static AppMetadata ToAppMetadata(this INativeTypesMetadata nativeTypesMetadata, IRequest req)
Returns

ServiceStack.AppMetadata

Parameters
TypeName
ServiceStack.NativeTypes.INativeTypesMetadatanativeTypesMetadata
ServiceStack.Web.IRequestreq

LocalizeMetadata(IRequest, AppMetadata)

View Source
Declaration
public static void LocalizeMetadata(IRequest req, AppMetadata response)
Parameters
TypeName
ServiceStack.Web.IRequestreq
ServiceStack.AppMetadataresponse

AddPluginLink(MetadataFeature, String, String)

View Source
Declaration
public static MetadataFeature AddPluginLink(this MetadataFeature metadata, string href, string title)
Returns

ServiceStack.MetadataFeature

Parameters
TypeName
ServiceStack.MetadataFeaturemetadata
System.Stringhref
System.Stringtitle

RemovePluginLink(MetadataFeature, String)

View Source
Declaration
public static MetadataFeature RemovePluginLink(this MetadataFeature metadata, string href)
Returns

ServiceStack.MetadataFeature

Parameters
TypeName
ServiceStack.MetadataFeaturemetadata
System.Stringhref

AddDebugLink(MetadataFeature, String, String)

View Source
Declaration
public static MetadataFeature AddDebugLink(this MetadataFeature metadata, string href, string title)
Returns

ServiceStack.MetadataFeature

Parameters
TypeName
ServiceStack.MetadataFeaturemetadata
System.Stringhref
System.Stringtitle

RemoveDebugLink(MetadataFeature, String)

View Source
Declaration
public static MetadataFeature RemoveDebugLink(this MetadataFeature metadata, string href)
Returns

ServiceStack.MetadataFeature

Parameters
TypeName
ServiceStack.MetadataFeaturemetadata
System.Stringhref