ข้ามไปยังเนื้อหา

Interface IReadStore

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll

Executes read-side requests against the active data implementation.

public interface IReadStore

ExecuteAsync<TResult>(IQuery<TResult>, CancellationToken)

Section titled “ ExecuteAsync<TResult>(IQuery<TResult>, CancellationToken)”

Executes the supplied query on the read side.

ValueTask<TResult> ExecuteAsync<TResult>(IQuery<TResult> query, CancellationToken cancellationToken = default)

query IQuery<TResult>

The query to execute.

cancellationToken CancellationToken

The token that cancels the operation.

ValueTask<TResult>

A task that completes with the requested result.

TResult

The result type returned by the query.