Show / Hide Table of Contents

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 Source

Initialize(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.

| Improve this Doc View Source

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 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

| Improve this Doc View Source

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 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

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX