Class FadTemplateVariables
Wraps a TemplateVariables instance, to keep fadX template tags recursion safe
Inherited Members
Namespace: SuperOffice.CRM.Globalization
Assembly: SoDataBase.dll
Syntax
public class FadTemplateVariables : TagContainer
Constructors
FadTemplateVariables(TemplateVariables)
Wraps a TemplateVariables instance, to keep fadX template tags recursion safe
Declaration
public FadTemplateVariables(TemplateVariables parent)
Parameters
| Type | Name | Description |
|---|---|---|
| TemplateVariables | parent |
Properties
CurrentContact
Wraps a TemplateVariables instance, to keep fadX template tags recursion safe
Declaration
public ContactTags CurrentContact { get; set; }
Property Value
| Type | Description |
|---|---|
| ContactTags |
CurrentPerson
Wraps a TemplateVariables instance, to keep fadX template tags recursion safe
Declaration
public CurrentPersonVariables CurrentPerson { get; set; }
Property Value
| Type | Description |
|---|---|
| CurrentPersonVariables |
Methods
GetIdAsync(CancellationToken)
Primary key of the
Declaration
public override Task<int> GetIdAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<int> |
Overrides
GetValueAsync(string, CancellationToken)
Get value, but skip fadx templates
Declaration
public override Task<string> GetValueAsync(string tag, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tag | Name of the tag |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<string> | Value of the tag. An empty string is returned if there is no valid value |
Overrides
InitAsync(CancellationToken)
Set the object in an initaited state. This means that no data can be added (e.g. AddData(params object[])) beyound this point.
Declaration
protected override Task InitAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
IsTagInContextAsync(string, CancellationToken)
Is this a valid tag in the given context. If there are no current sale, there are no valid tags for sale.
Declaration
public override Task<bool> IsTagInContextAsync(string tag, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tag | Name of the tag. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<bool> | True if the tag is valid in hte given context. |
Overrides
IsTagLegalAsync(string, CancellationToken)
Is this a legal tag?
Declaration
public override Task<bool> IsTagLegalAsync(string tag, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tag | Name of the tag. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<bool> | True is returned if this is a legal tag. |