using System.Security.Claims; using Umbraco.Cms.Core.Models.ServerEvents; namespace Umbraco.Cms.Core.ServerEvents; public interface IServerEventAuthorizationService { /// /// Authorizes a user to listen to server events. /// /// The user to authorize. /// The authorization result, containing all authorized event sources, and unauthorized event sources. Task AuthorizeAsync(ClaimsPrincipal user); }