Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IServerEventRouter

    Routes server events to the correct users.

    Namespace: Umbraco.Cms.Core.ServerEvents
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IServerEventRouter

    Methods

    View Source

    BroadcastEventAsync(ServerEvent)

    Broadcast a server event to all users, regardless of authorization.

    Declaration
    Task BroadcastEventAsync(ServerEvent serverEvent)
    Parameters
    Type Name Description
    ServerEvent serverEvent

    The event to broadcast.

    Returns
    Type Description
    Task
    View Source

    NotifyUserAsync(ServerEvent, Guid)

    Notify a specific user about a server event. Does not consider authorization.

    Declaration
    Task NotifyUserAsync(ServerEvent serverEvent, Guid userKey)
    Parameters
    Type Name Description
    ServerEvent serverEvent

    The server event to send to the user.

    Guid userKey

    Key of the user.

    Returns
    Type Description
    Task
    View Source

    RouteEventAsync(ServerEvent)

    Route a server event the users that has permissions to see it.

    Declaration
    Task RouteEventAsync(ServerEvent serverEvent)
    Parameters
    Type Name Description
    ServerEvent serverEvent

    The server event to route.

    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • BroadcastEventAsync(ServerEvent)
      • NotifyUserAsync(ServerEvent, Guid)
      • RouteEventAsync(ServerEvent)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX