Added singleton for managing ILookups collection, allows for adding/removing/inserting at runtime/startup

This commit is contained in:
shannon@ShandemVaio
2012-07-20 23:42:55 +06:00
parent 6c872e8a65
commit 8f278bcaa5
8 changed files with 118 additions and 16 deletions

View File

@@ -4,6 +4,7 @@ using System.Diagnostics;
using System.Linq;
using System.Text;
using Umbraco.Core;
using Umbraco.Web.Routing;
namespace Umbraco.Web
{
@@ -34,6 +35,9 @@ namespace Umbraco.Web
IsReady = true // fixme
};
//create the route lookups singleton
RouteLookups.Current = new RouteLookups(ApplicationContext.Current.Plugins.ResolveLookups());
Trace.TraceInformation("AppDomain is initialized");
}