Example #1
0
        public IMarkupStorage CreateControlScopeMarkupStorage(ControlScopeId controlScopeId)
        {
            IMarkupStorage controlMarkupStorage = new MarkupStorage();

            _nestedScopeToMarkupMap.Add(controlScopeId, controlMarkupStorage);
            return(controlMarkupStorage);
        }
 public IMarkupStorage GetOrCreateFor(PageScopeId scopeId)
 {
     if (!_map.TryGetValue(scopeId, out var markupStorage))
     {
         markupStorage = new MarkupStorage();
         _map.Add(scopeId, markupStorage);
     }
     return(markupStorage);
 }