Interface IBlobStore
Interface for a blob store that supports reading and writing binary data.
Inherited Members
Namespace: Serenity.Persistence.Domain.Interfaces
Assembly: Serenity.Global.Domain.dll
Syntax
public interface IBlobStore : IReadOnlyBlobStore, IKeyedStore, IPersistenceStore
Methods
WriteAsync(string, Stream, CancellationToken)
Writes a byte array to the blob store asynchronously.
Declaration
Task WriteAsync(string key, Stream content, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key under which to store the byte array. |
| Stream | content | The byte array to store. |
| CancellationToken | cancellationToken | A token to monitor for cancellation requests. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous write operation. |
WriteAsync(string, ReadOnlyMemory<byte>, CancellationToken)
Writes a byte array to the blob store asynchronously.
Declaration
Task WriteAsync(string key, ReadOnlyMemory<byte> content, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key under which to store the byte array. |
| ReadOnlyMemory<byte> | content | The byte array to store. |
| CancellationToken | cancellationToken | A token to monitor for cancellation requests. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous write operation. |