Interface IVaultStrategy
Represents a class with logic for determining which vaults to read from and write to for a given IAsyncConnection
Namespace: Innovator.Client.Connection
Assembly: Innovator.Client.dll
Syntax
public interface IVaultStrategy
Methods
| Improve this Doc View SourceInitialize(IAsyncConnection, IVaultFactory)
Initializes the stategy object with the specified connection and vault factory
Declaration
void Initialize(IAsyncConnection conn, IVaultFactory factory)
Parameters
Type | Name | Description |
---|---|---|
IAsyncConnection | conn | The connection. |
IVaultFactory | factory | The vault factory. |
ReadPriority(Boolean)
Asynchronously returns a list of vaults to read from in priority order
Declaration
IPromise<IEnumerable<Vault>> ReadPriority(bool async)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | async | if set to |
Returns
Type | Description |
---|---|
IPromise<System.Collections.Generic.IEnumerable<Vault>> | A list of vaults to read from in priority order |
WritePriority(Boolean)
Asynchronously returns a list of vaults to write to in priority order
Declaration
IPromise<IEnumerable<Vault>> WritePriority(bool async)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | async | if set to |
Returns
Type | Description |
---|---|
IPromise<System.Collections.Generic.IEnumerable<Vault>> | A list of vaults to write to in priority order |