Interface IDynamoTableTransactGetItems<TRecord>
Interface to specify the TransactGetItems operation for a specific record type.
Namespace: LambdaSharp.DynamoDB.Native.Operations
Assembly: LambdaSharp.DynamoDB.Native.dll
Syntax
public interface IDynamoTableTransactGetItems<TRecord>
where TRecord : class
Type Parameters
Name | Description |
---|---|
TRecord | The record type. |
Methods
Get<T>(Expression<Func<TRecord, T>>)
Selects a record property to fetch.
Declaration
IDynamoTableTransactGetItems<TRecord> Get<T>(Expression<Func<TRecord, T>> attribute)
Parameters
Type | Name | Description |
---|---|---|
System. |
attribute | A lambda expression that returns the record property. |
Returns
Type | Description |
---|---|
IDynamo |
Type Parameters
Name | Description |
---|---|
T | The property type. |
TryExecuteAsync(Int32, CancellationToken)
Attempts the TransactGetItems operation.
Declaration
Task<(bool Success, IEnumerable<TRecord> Items)> TryExecuteAsync(int maxAttempts = 5, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System. |
maxAttempts | Maximum number of attempts with exponential back when encountering provisioned throughput is exceeded. |
System. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System. |
A tuple indicating the success of the transatcion and the list of found items when successful. |