Table of Contents

Interface IIndicatorStorage

Namespace
ATAS.Indicators
Assembly
ATAS.Indicators.dll

Provides path-free access to storage owned by the current indicator.

Not in ATAS 8.0.15 yet: available from the next version.

public interface IIndicatorStorage
Extension Methods

Methods

CreateOrReplaceAsync(string, CancellationToken)

Creates a transactional session that atomically creates or replaces a file on commit.

ValueTask<IStorageWriteSession> CreateOrReplaceAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string
cancellationToken CancellationToken

Returns

ValueTask<IStorageWriteSession>

DeleteAsync(string, CancellationToken)

Deletes a file. Recursive group deletion is not supported.

ValueTask DeleteAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string
cancellationToken CancellationToken

Returns

ValueTask

EnumerateAsync(CancellationToken)

Enumerates direct children of the current logical group.

IAsyncEnumerable<StorageEntryInfo> EnumerateAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

IAsyncEnumerable<StorageEntryInfo>

ExistsAsync(string, CancellationToken)

Determines whether a file or group with the specified logical name exists.

ValueTask<bool> ExistsAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string
cancellationToken CancellationToken

Returns

ValueTask<bool>

GetInfoAsync(string, CancellationToken)

Gets logical metadata for a file or group.

ValueTask<StorageEntryInfo?> GetInfoAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string
cancellationToken CancellationToken

Returns

ValueTask<StorageEntryInfo>

GetSubGroup(string)

Narrows this capability to a logical child group.

IIndicatorStorage GetSubGroup(string name)

Parameters

name string

A single logical name, not a relative path.

Returns

IIndicatorStorage

A capability scoped to the requested child group.

OpenAppendAsync(string, CancellationToken)

Opens an append session. Only one writer can own a logical file at a time.

ValueTask<IStorageAppendSession> OpenAppendAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string
cancellationToken CancellationToken

Returns

ValueTask<IStorageAppendSession>

OpenReadAsync(string, CancellationToken)

Opens a seekable, read-only snapshot of a file.

ValueTask<Stream> OpenReadAsync(string name, CancellationToken cancellationToken = default)

Parameters

name string
cancellationToken CancellationToken

Returns

ValueTask<Stream>