Class ResolveFieldsHelpers
Extensions to IFieldsViewModel
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public static class ResolveFieldsHelpers
Methods
View SourceResolveTokenizedItemsAsync(IList<TokenizedItemViewModel>, TokenResolverRegistry, bool, bool, CancellationTokenSource)
Resolve the given tokens.
Declaration
public static Task<bool> ResolveTokenizedItemsAsync(IList<TokenizedItemViewModel> items, TokenResolverRegistry tokenResolverRegistry, bool skipUnknownResolver, bool skipAdHoc, CancellationTokenSource cts)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TokenizedItemViewModel> | items | The tokens. |
| TokenResolverRegistry | tokenResolverRegistry | The token resolver registry. |
| bool | skipUnknownResolver | Whether to skip if resolver is unknown. |
| bool | skipAdHoc | Whether to skip resolving AdHoc tokens. (Don't reset them). |
| CancellationTokenSource | cts | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<bool> | Whether it succeeded in resolving tokens. |
ResolveTokenizedItemsAsync(IList<TokenizedItemViewModel>, List<IGameDevice>, List<int>, TokenResolverRegistry, bool, bool, CancellationTokenSource)
Resolve the given tokens using the given list of devices.
Declaration
public static Task<bool> ResolveTokenizedItemsAsync(IList<TokenizedItemViewModel> items, List<IGameDevice> devices, List<int> indexesOfTokenValuesToUpdate, TokenResolverRegistry tokenResolverRegistry, bool skipUnknownResolver, bool skipAdHoc, CancellationTokenSource cts)
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TokenizedItemViewModel> | items | The tokens. |
| List<IGameDevice> | devices | A list of devices to resolve tokens on. |
| List<int> | indexesOfTokenValuesToUpdate | The indexes of the values of the token results to update. (Multiple device support). |
| TokenResolverRegistry | tokenResolverRegistry | The token resolver registry. |
| bool | skipUnknownResolver | Whether to skip if resolver is unknown. |
| bool | skipAdHoc | Whether to skip resolving AdHoc tokens. (Don't reset them). |
| CancellationTokenSource | cts | The cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<bool> | Whether it succeeded in resolving tokens. |