Class PersistenceSaveBytes
Use case for saving a byte array to the blob store.
Inherited Members
Namespace: Serenity.Persistence.Application.UseCases
Assembly: Serenity.Global.Application.dll
Syntax
public class PersistenceSaveBytes : IAsyncUseCase<PersistenceSaveBytesInput>, IUseCase
Remarks
Delegates the write operation to the underlying IBlobStore.
Constructors
PersistenceSaveBytes(IBlobStore)
Initializes a new instance of the PersistenceSaveBytes class.
Declaration
public PersistenceSaveBytes(IBlobStore store)
Parameters
| Type | Name | Description |
|---|---|---|
| IBlobStore | store | The blob store to be used for write operations. |
Methods
ExecuteAsync(PersistenceSaveBytesInput, CancellationToken)
Executes the save bytes operation asynchronously.
Declaration
public Task ExecuteAsync(PersistenceSaveBytesInput input, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| PersistenceSaveBytesInput | input | The input containing the key and byte data to store. |
| CancellationToken | cancellationToken | A token to monitor for cancellation requests. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous save operation. |