Skip to main content

LangGeneratorExtensions

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

Methods

GenerateSourceCode(List<MetadataType>, String, IRequest, Action<ILangGenerator>)

View Source
Declaration
public static string GenerateSourceCode(this List<MetadataType> metadataTypes, string lang, IRequest req, Action<ILangGenerator> configure = null)
Returns

System.String

Parameters
TypeName
System.Collections.Generic.List<ServiceStack.MetadataType>metadataTypes
System.Stringlang
ServiceStack.Web.IRequestreq
System.Action<ServiceStack.NativeTypes.ILangGenerator>configure

GenerateSourceCode(MetadataTypes, MetadataTypesConfig, String, IRequest, Action<ILangGenerator>)

View Source
Declaration
public static string GenerateSourceCode(this MetadataTypes metadataTypes, MetadataTypesConfig typesConfig, string lang, IRequest req, Action<ILangGenerator> configure = null)
Returns

System.String

Parameters
TypeName
ServiceStack.MetadataTypesmetadataTypes
ServiceStack.MetadataTypesConfigtypesConfig
System.Stringlang
ServiceStack.Web.IRequestreq
System.Action<ServiceStack.NativeTypes.ILangGenerator>configure