Table of Contents

Class NotificationHub<T>

Namespace
Oscova.Agents.Notifications
Assembly
Oscova.Agents.dll

Dispatches typed notifications to user-specific and global subscribers.

public sealed class NotificationHub<T>

Type Parameters

T

The notification payload type.

Inheritance

Inherited Members

Constructors

NotificationHub(ILogger<NotificationHub<T>>)

Dispatches typed notifications to user-specific and global subscribers.

Methods

NotifyAllAsync(T)

Sends a notification to every user-specific and global subscriber.

NotifyAsync(string, T)

Sends a notification to one user and all global subscribers.

Subscribe(string, Func<T, Task>)

Subscribes a handler to notifications for one user.

SubscribeAll(Func<T, Task>)

Subscribes a handler to all notifications without user context.

SubscribeAll(Func<string?, T, Task>)

Subscribes a handler to all notifications with optional user context.