logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Interface IReadOnlyBlobStore

    Interface for a keyed persistence store that supports existence checks and deletions.

    Inherited Members
    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 IReadOnlyBlobStore : IKeyedStore, IPersistenceStore

    Methods

    GetLengthAsync(string, CancellationToken)

    Gets the length of the blob associated with the specified key.

    Declaration
    Task<long?> GetLengthAsync(string key, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string key

    The key of the blob whose length is to be retrieved.

    CancellationToken cancellationToken

    A token to monitor for cancellation requests.

    Returns
    Type Description
    Task<long?>

    A task that represents the asynchronous operation, containing the length of the blob in bytes, or null if the blob does not exist.

    OpenReadAsync(string, CancellationToken)

    Declaration
    Task<Stream> OpenReadAsync(string key, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    string key
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<Stream>
    In this article
    © 2026 Serenity. All Rights Reserved