using System; using Umbraco.Core.ObjectResolution; namespace Umbraco.Web.Routing { /// /// Resolves the implementation. /// internal sealed class RoutesCacheResolver : SingleObjectResolverBase { /// /// Initializes a new instance of the class with an implementation. /// /// The implementation. internal RoutesCacheResolver(IRoutesCache routesCache) : base(routesCache) { } /// /// Can be used by developers at runtime to set their IRoutesCache at app startup /// /// public void SetRoutesCache(IRoutesCache routesCache) { Value = routesCache; } /// /// Gets or sets the implementation. /// public IRoutesCache RoutesCache { get { return this.Value; } } } }