Table of Contents

Class DaprPublicationCapabilityGate

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

Requires the publication state store to report the Dapr ETAG and TRANSACTIONAL capabilities (the same ones an actor state store needs). Reads the sidecar's metadata once it is reachable and caches the verdict.

public sealed class DaprPublicationCapabilityGate : IPublicationCapabilityGate
Inheritance
DaprPublicationCapabilityGate
Implements
Inherited Members

Constructors

DaprPublicationCapabilityGate(DaprClient, string, ILogger<DaprPublicationCapabilityGate>)

Requires the publication state store to report the Dapr ETAG and TRANSACTIONAL capabilities (the same ones an actor state store needs). Reads the sidecar's metadata once it is reachable and caches the verdict.

public DaprPublicationCapabilityGate(DaprClient dapr, string storeName, ILogger<DaprPublicationCapabilityGate> logger)

Parameters

dapr DaprClient
storeName string
logger ILogger<DaprPublicationCapabilityGate>

Methods

EnsureAsync(CancellationToken)

Throws FAILED_PRECONDITION when the store lacks a required capability.

public Task EnsureAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task