Interface IServerEventRouter
Routes server events to the correct users.
Namespace: Umbraco.Cms.Core.ServerEvents
Assembly: Umbraco.Core.dll
Syntax
public interface IServerEventRouter
Methods
View SourceBroadcastEventAsync(ServerEvent)
Broadcast a server event to all users, regardless of authorization.
Declaration
Task BroadcastEventAsync(ServerEvent serverEvent)
Parameters
Type | Name | Description |
---|---|---|
Server |
serverEvent | The event to broadcast. |
Returns
Type | Description |
---|---|
Task |
NotifyUserAsync(ServerEvent, Guid)
Notify a specific user about a server event.
Declaration
Task NotifyUserAsync(ServerEvent serverEvent, Guid userKey)
Parameters
Type | Name | Description |
---|---|---|
Server |
serverEvent | The server event to send to the user. |
Guid | userKey | Key of the user. |
Returns
Type | Description |
---|---|
Task |
RouteEventAsync(ServerEvent)
Route a server event the users that has permissions to see it.
Declaration
Task RouteEventAsync(ServerEvent serverEvent)
Parameters
Type | Name | Description |
---|---|---|
Server |
serverEvent | The server event to route. |
Returns
Type | Description |
---|---|
Task |