Interface IMessageRegistryGrain
- Namespace
- Microsoft.AutoGen.RuntimeGateway.Grpc.Abstractions
- Assembly
- Microsoft.AutoGen.RuntimeGateway.Grpc.dll
public interface IMessageRegistryGrain : IGrainWithIntegerKey, IGrain, IAddressable
Methods
AddMessageToDeadLetterQueueAsync(string, CloudEvent)
Writes a message to the dead-letter queue for the given topic.
Task AddMessageToDeadLetterQueueAsync(string topic, CloudEvent message)
Parameters
topicstringmessageCloudEvent
Returns
AddMessageToEventBufferAsync(string, CloudEvent)
Writes a message to the event buffer for the given topic.
Task AddMessageToEventBufferAsync(string topic, CloudEvent message)
Parameters
topicstringmessageCloudEvent
Returns
RemoveMessagesAsync(string)
Removes all messages for the given topic from the dead-letter queue.
Task<List<CloudEvent>> RemoveMessagesAsync(string topic)
Parameters
topicstringThe topic to remove messages for.
Returns
- Task<List<CloudEvent>>
A task representing the asynchronous operation, with the list of removed messages as the result.