Fixes #4742 - no assembly scanning for dashboards

This commit is contained in:
Shannon
2019-02-28 12:36:54 +10:00
parent 41f80b942a
commit de6528bcaf
2 changed files with 13 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ namespace Umbraco.Core.Dashboards
/// <summary>
/// Represents a dashboard.
/// </summary>
public interface IDashboard : IDashboardSlim, IDiscoverable
public interface IDashboard : IDashboardSlim
{
/// <summary>
/// Gets the aliases of sections/applications where this dashboard appears.

View File

@@ -8,6 +8,7 @@ using Umbraco.Core.Composing;
using Umbraco.Core.Dashboards;
using Umbraco.Core.Dictionary;
using Umbraco.Core.Events;
using Umbraco.Core.Manifest;
using Umbraco.Core.Migrations.PostMigrations;
using Umbraco.Web.Migrations.PostMigrations;
using Umbraco.Core.Models.PublishedContent;
@@ -238,7 +239,17 @@ namespace Umbraco.Web.Runtime
// register core CMS dashboards and 3rd party types - will be ordered by weight attribute & merged with package.manifest dashboards
composition.WithCollectionBuilder<DashboardCollectionBuilder>()
.Add(composition.TypeLoader.GetTypes<IDashboard>());
.Add<ContentDashboard>()
.Add<ExamineDashboard>()
.Add<FormsDashboard>()
.Add<HealthCheckDashboard>()
.Add<ManifestDashboard>()
.Add<MediaDashboard>()
.Add<MembersDashboard>()
.Add<PublishedStatusDashboard>()
.Add<RedirectUrlDashboard>()
.Add<RedirectUrlDashboard>()
.Add<SettingsDashboard>();
// register back office trees
// the collection builder only accepts types inheriting from TreeControllerBase