diff --git a/src/Umbraco.Cms.Api.Management/ServerEvents/ServerEventRouter.cs b/src/Umbraco.Cms.Api.Management/ServerEvents/ServerEventRouter.cs index 4c0a434c6333..caee65965c2f 100644 --- a/src/Umbraco.Cms.Api.Management/ServerEvents/ServerEventRouter.cs +++ b/src/Umbraco.Cms.Api.Management/ServerEvents/ServerEventRouter.cs @@ -4,6 +4,7 @@ namespace Umbraco.Cms.Api.Management.ServerEvents; +/// internal sealed class ServerEventRouter : IServerEventRouter { private readonly IHubContext _eventHub; @@ -12,6 +13,7 @@ public ServerEventRouter( IHubContext eventHub) => _eventHub = eventHub; + /// public Task RouteEventAsync(ServerEvent serverEvent) => _eventHub.Clients.Group(serverEvent.EventSource.ToString()).notify(serverEvent); } diff --git a/src/Umbraco.Core/ServerEvents/IServerEventRouter.cs b/src/Umbraco.Core/ServerEvents/IServerEventRouter.cs index d467db07271b..30e883d0626a 100644 --- a/src/Umbraco.Core/ServerEvents/IServerEventRouter.cs +++ b/src/Umbraco.Core/ServerEvents/IServerEventRouter.cs @@ -2,7 +2,15 @@ namespace Umbraco.Cms.Core.ServerEvents; +/// +/// Routes server events to the correct users. +/// public interface IServerEventRouter { + /// + /// Route a server event the users that has permissions to see it. + /// + /// The server event to route. + /// Task RouteEventAsync(ServerEvent serverEvent); }