Interface IServerEventHub
Defines the server event hub contract for real-time communication with clients.
Namespace: Umbraco.Cms.Core.ServerEvents
Assembly: Umbraco.Core.dll
Syntax
public interface IServerEventHub
Remarks
This interface is implemented by SignalR hubs and defines the methods that can be invoked on connected clients to push server events.
Methods
View Sourcenotify(ServerEvent)
Notifies connected clients of a server event.
Declaration
Task notify(ServerEvent payload)
Parameters
| Type | Name | Description |
|---|---|---|
| ServerEvent | payload | The server event payload to send to clients. |
Returns
| Type | Description |
|---|---|
| Task | A task representing the asynchronous notification operation. |
Remarks
The method name is lowercase to match SignalR client-side conventions.