Merge pull request #9881 from kjac/netcore/feature/remove-treecontroller-static-events

Replace static events in TreeControllerBase with IEventAggregator notifications
This commit is contained in:
Bjarke Berg
2021-03-01 10:24:20 +01:00
committed by GitHub
35 changed files with 208 additions and 175 deletions

View File

@@ -265,7 +265,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
}
var controller = (TreeControllerBase)result.Value;
var rootNodeResult = controller.GetRootNode(querystring);
var rootNodeResult = await controller.GetRootNode(querystring);
if (!(rootNodeResult.Result is null))
{
return rootNodeResult.Result;
@@ -305,7 +305,7 @@ namespace Umbraco.Cms.Web.BackOffice.Trees
}
var controller = (TreeControllerBase)controllerResult.Value;
return controller.GetNodes(id.ToInvariantString(), querystring);
return await controller.GetNodes(id.ToInvariantString(), querystring);
}
/// <summary>