Class PersistenceAppendBytes
Use case for appending a byte array to an existing blob in the store.
Inherited Members
Namespace: Serenity.Persistence.Application.UseCases
Assembly: Serenity.Global.Application.dll
Syntax
public class PersistenceAppendBytes : IAsyncUseCase<PersistenceAppendBytesInput>, IUseCase
Remarks
If the underlying store implements IAppendableBlobStore, it delegates directly. Otherwise, it falls back to read-concat-write using the base IBlobStore.
Constructors
PersistenceAppendBytes(IBlobStore)
Initializes a new instance of the PersistenceAppendBytes class.
Declaration
public PersistenceAppendBytes(IBlobStore store)
Parameters
| Type | Name | Description |
|---|---|---|
| IBlobStore | store | The blob store to be used for append operations. |
Methods
ExecuteAsync(PersistenceAppendBytesInput, CancellationToken)
Executes the append bytes operation asynchronously.
Declaration
public Task ExecuteAsync(PersistenceAppendBytesInput input, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| PersistenceAppendBytesInput | input | The input containing the key, data to append, and creation policy. |
| CancellationToken | cancellationToken | A token to monitor for cancellation requests. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous append operation. |