Class DefaultVaultStrategy
Contains logic for determining which vaults to read from and write to for a given IAsyncConnection
Inheritance
System.Object
DefaultVaultStrategy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Innovator.Client.Connection
Assembly: Innovator.Client.dll
Syntax
public class DefaultVaultStrategy : IVaultStrategy
Methods
| Improve this Doc View SourceInitialize(IAsyncConnection, IVaultFactory)
Initializes the stategy object with the specified connection and vault factory
Declaration
public void Initialize(IAsyncConnection conn, IVaultFactory factory)
Parameters
Type | Name | Description |
---|---|---|
IAsyncConnection | conn | The connection. |
IVaultFactory | factory | The vault factory. |
Implements
| Improve this Doc View SourceReadPriority(Boolean)
Asynchronously returns a list of vaults to read from in priority order
Declaration
public 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 |
Implements
| Improve this Doc View SourceWritePriority(Boolean)
Asynchronously returns a list of vaults to write to in priority order
Declaration
public 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 |