Interface IReadStore
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll
Executes read-side requests against the active data implementation.
public interface IReadStoreMethods
Section titled “Methods”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)Parameters
Section titled “Parameters”query IQuery<TResult>
The query to execute.
cancellationToken CancellationToken
The token that cancels the operation.
Returns
Section titled “Returns”ValueTask<TResult>
A task that completes with the requested result.
Type Parameters
Section titled “Type Parameters”TResult
The result type returned by the query.