logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IBlobStore

    Interface for a blob store that supports reading and writing binary data.

    Inherited Members
    IReadOnlyBlobStore.OpenReadAsync(string, CancellationToken)
    IReadOnlyBlobStore.GetLengthAsync(string, CancellationToken)
    IKeyedStore.ExistsAsync(string, CancellationToken)
    IKeyedStore.DeleteAsync(string, CancellationToken)
    IPersistenceStore.HealthCheckAsync(CancellationToken)
    IPersistenceStore.Namespace
    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.

    In this article
    © 2026 Serenity. All Rights Reserved