diff --git a/src/Orchard.Tests/Environment/DefaultOrchardHostTests.cs b/src/Orchard.Tests/Environment/DefaultOrchardHostTests.cs index 35804a700..8369f8eca 100644 --- a/src/Orchard.Tests/Environment/DefaultOrchardHostTests.cs +++ b/src/Orchard.Tests/Environment/DefaultOrchardHostTests.cs @@ -77,10 +77,11 @@ namespace Orchard.Tests.Environment { return Enumerable.Empty(); } - public IEnumerable LoadFeature(string featureName) { + public ShellTopology_Obsolete GetExtensionsTopology() { throw new NotImplementedException(); } + public IEnumerable LoadFeature(string featureName) { throw new NotImplementedException(); } diff --git a/src/Orchard.Tests/Mvc/Routes/StandardExtensionRouteProviderTests.cs b/src/Orchard.Tests/Mvc/Routes/StandardExtensionRouteProviderTests.cs index 25173e2c8..06c5a9222 100644 --- a/src/Orchard.Tests/Mvc/Routes/StandardExtensionRouteProviderTests.cs +++ b/src/Orchard.Tests/Mvc/Routes/StandardExtensionRouteProviderTests.cs @@ -54,12 +54,14 @@ namespace Orchard.Tests.Mvc.Routes { }; } + public ShellTopology_Obsolete GetExtensionsTopology() { + throw new NotImplementedException(); + } + public IEnumerable LoadFeature(string featureName) { throw new NotImplementedException(); } - throw new NotImplementedException(); - } public void InstallExtension(string extensionType, HttpPostedFileBase extensionBundle) { throw new NotImplementedException(); diff --git a/src/Orchard/Extensions/ExtensionManager.cs b/src/Orchard/Extensions/ExtensionManager.cs index 4516d1fb3..0cc6cb3c6 100644 --- a/src/Orchard/Extensions/ExtensionManager.cs +++ b/src/Orchard/Extensions/ExtensionManager.cs @@ -103,10 +103,10 @@ namespace Orchard.Extensions { return featureDescriptors; } - public ShellTopology GetExtensionsTopology() { + public ShellTopology_Obsolete GetExtensionsTopology() { var types = ActiveExtensions().SelectMany(x => x.ExportedTypes); types = types.Concat(typeof(IOrchardHost).Assembly.GetExportedTypes()); - return new ShellTopology { Types = types.Where(t => t.IsClass && !t.IsAbstract) }; + return new ShellTopology_Obsolete { Types = types.Where(t => t.IsClass && !t.IsAbstract) }; } public IEnumerable LoadFeature(string featureName) { diff --git a/src/Orchard/Extensions/IExtensionManager.cs b/src/Orchard/Extensions/IExtensionManager.cs index bcc5cb00f..bb138709d 100644 --- a/src/Orchard/Extensions/IExtensionManager.cs +++ b/src/Orchard/Extensions/IExtensionManager.cs @@ -6,6 +6,7 @@ namespace Orchard.Extensions { public interface IExtensionManager { IEnumerable AvailableExtensions(); IEnumerable ActiveExtensions(); + ShellTopology_Obsolete GetExtensionsTopology(); IEnumerable LoadFeature(string featureName); void InstallExtension(string extensionType, HttpPostedFileBase extensionBundle); void UninstallExtension(string extensionType, string extensionName);