Table of Contents

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

handler Func<T, Task>

The asynchronous callback to invoke for every notification.

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

handler Func<string?, T, Task>

The asynchronous callback to invoke with the target user when available.

Returns

IDisposable

A disposable subscription that removes the handler.