Postfixed notifications with "Notifications" for improved discoverability
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
/// <remarks>
|
||||
/// Developers can add/remove/replace/insert/update/etc... any of the tree items in the collection.
|
||||
/// </remarks>
|
||||
public class MenuRendering : INotification
|
||||
public class MenuRenderingNotification : INotification
|
||||
{
|
||||
/// <summary>
|
||||
/// The tree node id that the menu is rendering for
|
||||
@@ -27,7 +27,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
/// </summary>
|
||||
public FormCollection QueryString { get; }
|
||||
|
||||
public MenuRendering(string nodeId, MenuItemCollection menu, FormCollection queryString)
|
||||
public MenuRenderingNotification(string nodeId, MenuItemCollection menu, FormCollection queryString)
|
||||
{
|
||||
NodeId = nodeId;
|
||||
Menu = menu;
|
||||
@@ -7,7 +7,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
/// <summary>
|
||||
/// A notification that allows developer to modify the root tree node that is being rendered
|
||||
/// </summary>
|
||||
public class RootNodeRendering : INotification
|
||||
public class RootNodeRenderingNotification : INotification
|
||||
{
|
||||
/// <summary>
|
||||
/// The root node being rendered
|
||||
@@ -19,7 +19,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
/// </summary>
|
||||
public FormCollection QueryString { get; }
|
||||
|
||||
public RootNodeRendering(TreeNode node, FormCollection queryString)
|
||||
public RootNodeRenderingNotification(TreeNode node, FormCollection queryString)
|
||||
{
|
||||
Node = node;
|
||||
QueryString = queryString;
|
||||
@@ -112,7 +112,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
if (IsDialog(queryStrings))
|
||||
node.RoutePath = "#";
|
||||
|
||||
await _eventAggregator.PublishAsync(new RootNodeRendering(node, queryStrings));
|
||||
await _eventAggregator.PublishAsync(new RootNodeRenderingNotification(node, queryStrings));
|
||||
|
||||
return node;
|
||||
}
|
||||
@@ -150,7 +150,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
node.RoutePath = "#";
|
||||
|
||||
//raise the event
|
||||
await _eventAggregator.PublishAsync(new TreeNodesRendering(nodes, queryStrings));
|
||||
await _eventAggregator.PublishAsync(new TreeNodesRenderingNotification(nodes, queryStrings));
|
||||
|
||||
return nodes;
|
||||
}
|
||||
@@ -172,7 +172,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
|
||||
var menu = menuResult.Value;
|
||||
//raise the event
|
||||
await _eventAggregator.PublishAsync(new MenuRendering(id, menu, queryStrings));
|
||||
await _eventAggregator.PublishAsync(new MenuRenderingNotification(id, menu, queryStrings));
|
||||
return menu;
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
/// <remarks>
|
||||
/// Developers can add/remove/replace/insert/update/etc... any of the tree items in the collection.
|
||||
/// </remarks>
|
||||
public class TreeNodesRendering : INotification
|
||||
public class TreeNodesRenderingNotification : INotification
|
||||
{
|
||||
/// <summary>
|
||||
/// The tree nodes being rendered
|
||||
@@ -22,7 +22,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
|
||||
/// </summary>
|
||||
public FormCollection QueryString { get; }
|
||||
|
||||
public TreeNodesRendering(TreeNodeCollection nodes, FormCollection queryString)
|
||||
public TreeNodesRenderingNotification(TreeNodeCollection nodes, FormCollection queryString)
|
||||
{
|
||||
Nodes = nodes;
|
||||
QueryString = queryString;
|
||||
Reference in New Issue
Block a user