Table of Contents

Interface IStorageApiV1

Namespace
WhalesSecret.TradeScriptLib.API
Assembly
WhalesSecret.TradeScriptLib.dll

Trade script storage API interface version 1.0.0.

public interface IStorageApiV1 : IVersionedApiV1
Inherited Members
Extension Methods

Fields

StorageMaxKeyLength

Maximum length of the key in the script storage.

Methods

CheckKeyExistsAsync(byte[])

Checks whether the persistent script storage contains any value for the given key.

CheckKeyExistsAsync(string)

Checks whether the persistent script storage contains any value for the given key.

DeleteAllObjectsAsync()

Deletes all object from the persistent storage.

DeleteObjectAsync(byte[])

Deletes an object, identified by the given key, from the persistent storage.

DeleteObjectAsync(string)

Deletes an object, identified by the given key, from the persistent storage.

GetDataFileNames()

Gets enumerator of all trade script data files that are available to the script.

GetKeysAsync()

Gets all keys in the persistent storage.

GetStringKeysAsync()

Gets all keys in the persistent storage as strings.

LoadObjectAsync<TValue>(byte[])

Loads an object, identified by the given key, from the persistent script storage.

LoadObjectAsync<TValue>(string)

Loads an object, identified by the given key, from the persistent script storage.

ReadDataFileAsBytesAsync(string, CancellationToken)

Reads contents of a trade script data file and interprets it as a binary data.

ReadDataFileAsLinesAsync(string, Encoding, CancellationToken)

Reads contents of a trade script data file and interprets it as string lines.

Internally, this method uses ReadAllLinesAsync(string, Encoding, CancellationToken).

ReadDataFileAsLinesAsync(string, CancellationToken)

Reads contents of a trade script data file and interprets it as string lines.

Internally, this method uses ReadAllLinesAsync(string, Encoding, CancellationToken).

ReadDataFileAsStringAsync(string, Encoding, CancellationToken)

Reads contents of a trade script data file and interprets it as a single string.

Internally, this method uses ReadAllTextAsync(string, Encoding, CancellationToken).

ReadDataFileAsStringAsync(string, CancellationToken)

Reads contents of a trade script data file and interprets it as a single string.

Internally, this method uses ReadAllTextAsync(string, Encoding, CancellationToken).

StoreObjectAsync<TValue>(byte[], TValue)

Stores a serialized value of an object to the persistent script storage under the given key.

StoreObjectAsync<TValue>(string, TValue)

Stores a serialized value of an object to the persistent script storage under the given key.