using Umbraco.Core.ObjectResolution; namespace Umbraco.Core.Strings { /// /// Resolves the IShortStringHelper object /// public sealed class ShortStringHelperResolver : SingleObjectResolverBase { /// /// Initializes a new instance of the class with an instance of a helper. /// /// A instance of a helper. /// The resolver is created by the CoreBootManager and thus the constructor remains internal. internal ShortStringHelperResolver(IShortStringHelper helper) : base(helper) { Resolution.Frozen += (sender, args) => Value.Freeze(); } /// /// Sets the helper. /// /// The helper. /// For developers, at application startup. public void SetHelper(IShortStringHelper helper) { Value = helper; } /// /// Gets the helper. /// public IShortStringHelper Helper { get { return Value; } } } }