Fix, now boots and runs

This commit is contained in:
Stephan
2017-09-27 10:25:47 +02:00
parent c24fdc0ddf
commit 05cb03af11
26 changed files with 100 additions and 298 deletions

View File

@@ -81,7 +81,7 @@ namespace Umbraco.Web.Trees
/// <returns></returns>
private async Task<TreeNode> GetRootForMultipleAppTree(ApplicationTree configTree, FormDataCollection queryStrings)
{
if (configTree == null) throw new ArgumentNullException("configTree");
if (configTree == null) throw new ArgumentNullException(nameof(configTree));
var byControllerAttempt = await configTree.TryGetRootNodeFromControllerTree(queryStrings, ControllerContext);
if (byControllerAttempt.Success)
{
@@ -108,7 +108,7 @@ namespace Umbraco.Web.Trees
private async Task<SectionRootNode> GetRootForSingleAppTree(ApplicationTree configTree, string id, FormDataCollection queryStrings, string application)
{
var rootId = Constants.System.Root.ToString(CultureInfo.InvariantCulture);
if (configTree == null) throw new ArgumentNullException("configTree");
if (configTree == null) throw new ArgumentNullException(nameof(configTree));
var byControllerAttempt = configTree.TryLoadFromControllerTree(id, queryStrings, ControllerContext);
if (byControllerAttempt.Success)
{
@@ -167,9 +167,5 @@ namespace Umbraco.Web.Trees
throw new ApplicationException("Could not render a tree for type " + configTree.Alias);
}
}
}