C# Class RazorEngine.Templating.TemplateServiceFactory

Provides factory methods for creating ITemplateService instances.
Mostrar archivo Open project: tqc/RazorEngine

Public Methods

Method Description
CreateTemplateService ( ILanguageProvider provider = null, Type templateBaseType = null, MarkupParser parser = null ) : TemplateService

Creates an instance of a TemplateService.

CreateTemplateService ( TemplateServiceConfigurationElement configuration, IEnumerable defaultNamespaces = null ) : TemplateService

Creates an instance of a TemplateService.

CreateTemplateService ( string configuration ) : TemplateService

Creates an instance of a TemplateService.

Private Methods

Method Description
GetInstance ( string typeName ) : object

Gets an instance of the specified type.

GetType ( string typeName ) : Type

Gets the Type

Method Details

CreateTemplateService() public static method

Creates an instance of a TemplateService.
public static CreateTemplateService ( ILanguageProvider provider = null, Type templateBaseType = null, MarkupParser parser = null ) : TemplateService
provider ILanguageProvider [Optional] The language provider to use.
templateBaseType Type [Optional] The base template type.
parser MarkupParser [Optional] The markup parser to use.
return TemplateService

CreateTemplateService() public static method

Creates an instance of a TemplateService.
public static CreateTemplateService ( TemplateServiceConfigurationElement configuration, IEnumerable defaultNamespaces = null ) : TemplateService
configuration TemplateServiceConfigurationElement The that represents the configuration.
defaultNamespaces IEnumerable The enumerable of namespaces to add as default.
return TemplateService

CreateTemplateService() public static method

Creates an instance of a TemplateService.
public static CreateTemplateService ( string configuration ) : TemplateService
configuration string The named configuration.
return TemplateService