Class DaprPayloadSchemaBlobStore
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
daprDaprClientstoreNamestring
Methods
GetAsync(string, CancellationToken)
The bytes under key; null when absent.
public Task<byte[]?> GetAsync(string key, CancellationToken cancellationToken)
Parameters
keystringcancellationTokenCancellationToken
Returns
SaveAsync(string, byte[], CancellationToken)
Writes bytes under key (the same content again is harmless).
public Task SaveAsync(string key, byte[] bytes, CancellationToken cancellationToken)
Parameters
keystringbytesbyte[]cancellationTokenCancellationToken