Compartilhar via


TemplateServiceProvider.CreateTemplateService(HttpConfiguration) Método

Definição

Importante

Esta API não está em conformidade com CLS.

Crie um novo RazorEngine.Templating.ITemplateService usando IContentProvider como resolvedor e ApiTemplate<TModel> como a base de modelo.

[System.CLSCompliant(false)]
protected virtual RazorEngine.Templating.ITemplateService CreateTemplateService (System.Web.Http.HttpConfiguration config);
[<System.CLSCompliant(false)>]
abstract member CreateTemplateService : System.Web.Http.HttpConfiguration -> RazorEngine.Templating.ITemplateService
override this.CreateTemplateService : System.Web.Http.HttpConfiguration -> RazorEngine.Templating.ITemplateService
Protected Overridable Function CreateTemplateService (config As HttpConfiguration) As ITemplateService

Parâmetros

config
System.Web.Http.HttpConfiguration

O System.Web.Http.HttpConfiguration atual.

Retornos

RazorEngine.Templating.ITemplateService

Uma nova instância de RazorEngine.Templating.ITemplateService.

Atributos

Aplica-se a