Method SubscribeAll
- Namespace
- Oscova.Agents.Notifications
- Assembly
- Oscova.Agents.dll
SubscribeAll(Func<T, Task>)
Subscribes a handler to all notifications without user context.
public IDisposable SubscribeAll(Func<T, Task> handler)Parameters
Returns
- IDisposable
-
A disposable subscription that removes the handler.
SubscribeAll(Func<string?, T, Task>)
Subscribes a handler to all notifications with optional user context.
public IDisposable SubscribeAll(Func<string?, T, Task> handler)Parameters
handlerFunc<string?, T, Task>-
The asynchronous callback to invoke with the target user when available.
Returns
- IDisposable
-
A disposable subscription that removes the handler.