Interface IMessagingEventHub
Interface for event hubs supporting messaging.
Namespace: Kephas.Messaging.Events
Assembly: Kephas.Messaging.dll
Syntax
public interface IMessagingEventHub
Methods
| Improve this Doc View SourceSubscribe(IMessageMatch, Func<Object, IContext, CancellationToken, Task>)
Subscribes to the event(s) matching the criteria.
Declaration
IEventSubscription Subscribe(IMessageMatch match, Func<object, IContext, CancellationToken, Task> callback)
Parameters
Type | Name | Description |
---|---|---|
IMessageMatch | match | Specifies the match criteria. |
System.Func<System.Object, IContext, System.Threading.CancellationToken, System.Threading.Tasks.Task> | callback | The callback. |
Returns
Type | Description |
---|---|
IEventSubscription | An IEventSubscription. |