logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class PersistenceAppendBytes

    Use case for appending a byte array to an existing blob in the store.

    Inheritance
    object
    PersistenceAppendBytes
    Implements
    IAsyncUseCase<PersistenceAppendBytesInput>
    IUseCase
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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.

    Implements

    IAsyncUseCase<TInput>
    IUseCase
    In this article
    © 2026 Serenity. All Rights Reserved