Class Acknowledgeable
Provides a default implementation of the IAcknowledgeable interface.
public abstract record Acknowledgeable : IAcknowledgeable, IEquatable<Acknowledgeable>
- Inheritance
-
objectAcknowledgeable
- Implements
- Derived
Constructors
Acknowledgeable()
Initializes a new instance of the Acknowledgeable class.
protected Acknowledgeable()
Properties
Properties
Share state between components during message processing.
public IDictionary<string, object> Properties { get; }
Property Value
- IDictionary<string, object>
The state between components during message processing.
Methods
AcknowledgeAsync()
Acknowledges that this message was processed successfully.
public Task AcknowledgeAsync()
Returns
- Task
A task that represents the asynchronous operation.
OnAcknowledgedAsync(AcknowledgedEventArgs)
Raises the Acknowledged event.
protected virtual Task OnAcknowledgedAsync(AcknowledgedEventArgs e)
Parameters
e
AcknowledgedEventArgsThe AcknowledgedEventArgs instance containing the event data.
Returns
Events
Acknowledged
Occurs when the method AcknowledgeAsync() is called.
public event AsyncEventHandler<AcknowledgedEventArgs> Acknowledged