Interface IAppendableBlobStore
Interface for a blob store that supports appending data to existing blobs.
Namespace: Serenity.Persistence.Domain.Interfaces
Assembly: Serenity.Global.Domain.dll
Syntax
public interface IAppendableBlobStore
Methods
AppendAsync(string, Stream, bool, CancellationToken)
Appends data from a stream to an existing blob, optionally creating the blob if it does not exist.
Declaration
Task AppendAsync(string key, Stream data, bool createIfMissing, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key of the blob to append to. |
| Stream | data | The stream containing the data to append. |
| bool | createIfMissing | Whether to create the blob if it does not exist. |
| CancellationToken | cancellationToken | A cancellation token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous append operation. |
AppendAsync(string, ReadOnlyMemory<byte>, bool, CancellationToken)
Appends a byte array to an existing blob, optionally creating the blob if it does not exist.
Declaration
Task AppendAsync(string key, ReadOnlyMemory<byte> data, bool createIfMissing, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key of the blob to append to. |
| ReadOnlyMemory<byte> | data | The byte array to append. |
| bool | createIfMissing | Whether to create the blob if it does not exist. |
| CancellationToken | cancellationToken | A cancellation token to cancel the operation. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous append operation. |