Class TopicCatalogEvents
Announces topics new to the catalog on sys.api.topic.catalog.added (api#56), data
{topics: [...]}. Best effort, as the state-change events: a failed publish is logged;
a client that missed it reads the catalog again (Pubsub.ListTopics) when it resubscribes.
public sealed class TopicCatalogEvents
- Inheritance
-
TopicCatalogEvents
- Inherited Members
Constructors
TopicCatalogEvents(DaprClient, DaprComponentOptions, ILogger<TopicCatalogEvents>)
Announces topics new to the catalog on sys.api.topic.catalog.added (api#56), data
{topics: [...]}. Best effort, as the state-change events: a failed publish is logged;
a client that missed it reads the catalog again (Pubsub.ListTopics) when it resubscribes.
public TopicCatalogEvents(DaprClient dapr, DaprComponentOptions components, ILogger<TopicCatalogEvents> logger)
Parameters
daprDaprClientcomponentsDaprComponentOptionsloggerILogger<TopicCatalogEvents>
Fields
Topic
public static readonly string Topic
Field Value
Type
public static readonly string Type
Field Value
Methods
AnnounceAddedAsync(IReadOnlyList<string>, CancellationToken)
public Task AnnounceAddedAsync(IReadOnlyList<string> topics, CancellationToken cancellationToken)
Parameters
topicsIReadOnlyList<string>cancellationTokenCancellationToken