Class 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 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
daprDaprClientstoreNamestringloggerILogger<DaprPublicationCapabilityGate>
Methods
EnsureAsync(CancellationToken)
Throws FAILED_PRECONDITION when the store lacks a required capability.
public Task EnsureAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationToken