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

Interface IWriteStore

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

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

Executes write-side requests against the active data implementation.

public interface IWriteStore

ExecuteAsync(ICommand, CancellationToken)

Section titled “ ExecuteAsync(ICommand, CancellationToken)”

Executes the supplied command on the write side.

ValueTask ExecuteAsync(ICommand command, CancellationToken cancellationToken = default)

command ICommand

The command to execute.

cancellationToken CancellationToken

The token that cancels the operation.

ValueTask

A task that completes when the command has finished running.

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

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

Executes the supplied command on the write side and returns the resulting value.

ValueTask<TResult> ExecuteAsync<TResult>(ICommand<TResult> command, CancellationToken cancellationToken = default)

command ICommand<TResult>

The command to execute.

cancellationToken CancellationToken

The token that cancels the operation.

ValueTask<TResult>

A task that completes with the result produced by the command.

TResult

The result type returned by the command.