logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class PersistenceSaveBytes

    Use case for saving a byte array to the blob store.

    Inheritance
    object
    PersistenceSaveBytes
    Implements
    IAsyncUseCase<PersistenceSaveBytesInput>
    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 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.

    Implements

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