Open sandboxFocus

Constructor DurableTemplateInvocation

DurableTemplateInvocation(string, object?)

Initializes a new instance of the DurableTemplateInvocation class for a template of the current template provider.

Declaration
public DurableTemplateInvocation(string templateName, object? arguments = null)
Parameters
Type Name Description
string templateName

The name of the called template method. This method must be annotated with TemplateAttribute.

object arguments

An object (typically of anonymous type) whose properties map to parameters or type parameters of the template. Its values must be durable.

DurableTemplateInvocation(string, ITemplateProvider, object?)

Initializes a new instance of the DurableTemplateInvocation class for a template of a given ITemplateProvider.

Declaration
public DurableTemplateInvocation(string templateName, ITemplateProvider templateProvider, object? arguments = null)
Parameters
Type Name Description
string templateName

The name of the called template method. This method must be annotated with TemplateAttribute.

ITemplateProvider templateProvider

The object that provides the template. It must be durable.

object arguments

An object (typically of anonymous type) whose properties map to parameters or type parameters of the template. Its values must be durable.