Udostępnij za pośrednictwem


TemplateServiceProvider Class

Definition

Provides a default ITemplateServiceProvider which resolves template views using the registered IContentProvider.

public class TemplateServiceProvider : Microsoft.WindowsAzure.Mobile.Service.Content.ITemplateServiceProvider
type TemplateServiceProvider = class
    interface ITemplateServiceProvider
Public Class TemplateServiceProvider
Implements ITemplateServiceProvider
Inheritance
TemplateServiceProvider
Implements

Constructors

TemplateServiceProvider(HttpConfiguration)

Initializes a new instance of the TemplateServiceProvider with a given config.

Methods

CreateTemplateResolver(IContentProvider)

Create a new RazorEngine.Templating.ITemplateService resolver delegate which is called by the RazorEngine.Templating.TemplateService for resolving views.

CreateTemplateService(HttpConfiguration)

Create a new RazorEngine.Templating.ITemplateService using IContentProvider as the resolver and ApiTemplate<TModel> as the template base.

GetTemplateService()

Gets the RazorEngine.Templating.ITemplateService which will be used to resolve template views.

Applies to