RedirectToSynthesizedMethod(string)
Redirects the calls to a method synthesized from the template of the given name.
Declaration
ITemplateRegistration RedirectToSynthesizedMethod(string template)Parameters
| Type | Name | Description |
|---|---|---|
| string | template | The name of the template. |
Returns
| Type | Description |
|---|---|
| ITemplateRegistration |
Remarks
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|
RedirectToSynthesizedMethod(in MethodTemplateSelector)
Redirects the calls to a method synthesized from a template given as a MethodTemplateSelector.
Declaration
ITemplateRegistration RedirectToSynthesizedMethod(in MethodTemplateSelector template)Parameters
| Type | Name | Description |
|---|---|---|
| MethodTemplateSelector | template | The template. |
Returns
| Type | Description |
|---|---|
| ITemplateRegistration |
Remarks
See RedirectToSynthesizedMethod(in MethodTemplateSelector). The options of the synthesized method are set on the returned ITemplateRegistration.
RedirectToSynthesizedMethod(DurableTemplateInvocation)
Redirects the calls to a method synthesized from a template given as a DurableTemplateInvocation, which also gives the arguments and the template provider.
Declaration
ITemplateRegistration RedirectToSynthesizedMethod(DurableTemplateInvocation template)Parameters
| Type | Name | Description |
|---|---|---|
| DurableTemplateInvocation | template | The template, its arguments and its provider. Its arguments take the forms that WithArgs(object) accepts. |
Returns
| Type | Description |
|---|---|
| ITemplateRegistration |
Remarks
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|