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