Show / Hide Table of Contents

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 Source

Initialize(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
IVaultStrategy.Initialize(IAsyncConnection, IVaultFactory)
| Improve this Doc View Source

ReadPriority(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 true, execute asyncronously. Otherwise, a resolved promise is returned

Returns
Type Description
IPromise<System.Collections.Generic.IEnumerable<Vault>>

A list of vaults to read from in priority order

Implements
IVaultStrategy.ReadPriority(Boolean)
| Improve this Doc View Source

WritePriority(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 true, execute asyncronously. Otherwise, a resolved promise is returned

Returns
Type Description
IPromise<System.Collections.Generic.IEnumerable<Vault>>

A list of vaults to write to in priority order

Implements
IVaultStrategy.WritePriority(Boolean)
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX