Table of Contents

Class DaprPayloadSchemaBlobStore

Namespace
Virtufin.Api.Services
Assembly
Virtufin.Api.dll

IPayloadSchemaBlobStore over the Dapr state API's byte calls.

public sealed class DaprPayloadSchemaBlobStore : IPayloadSchemaBlobStore
Inheritance
DaprPayloadSchemaBlobStore
Implements
Inherited Members

Constructors

DaprPayloadSchemaBlobStore(DaprClient, string)

IPayloadSchemaBlobStore over the Dapr state API's byte calls.

public DaprPayloadSchemaBlobStore(DaprClient dapr, string storeName)

Parameters

dapr DaprClient
storeName string

Methods

GetAsync(string, CancellationToken)

The bytes under key; null when absent.

public Task<byte[]?> GetAsync(string key, CancellationToken cancellationToken)

Parameters

key string
cancellationToken CancellationToken

Returns

Task<byte[]>

SaveAsync(string, byte[], CancellationToken)

Writes bytes under key (the same content again is harmless).

public Task SaveAsync(string key, byte[] bytes, CancellationToken cancellationToken)

Parameters

key string
bytes byte[]
cancellationToken CancellationToken

Returns

Task