FromType<T>(string, object?)
Creates a DurableTemplateInvocation for a static template declared by a given type.
Declaration
public static DurableTemplateInvocation FromType<T>(string templateName, object? arguments = null) where T : ITemplateProviderParameters
| Type | Name | Description |
|---|---|---|
| string | templateName | The name of the called template method. This method must be static and 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. |
Returns
| Type | Description |
|---|---|
| DurableTemplateInvocation |
Type Parameters
| Name | Description |
|---|---|
| T | The type that declares the template. |
See Also
FromType<T>()