public void Deny_Unrestricted() { ObjectTagBuilder otb = new ObjectTagBuilder(); otb.AppendLiteralString(String.Empty); otb.AppendSubBuilder(new ControlBuilder()); try { otb.Init(null, null, null, null, null, null); } catch (HttpException) { // missing id } }
void ProcessObjects(ControlBuilder builder) { if (builder.Children == null) { return; } foreach (object t in builder.Children) { if (!(t is ObjectTagBuilder)) { continue; } ObjectTagBuilder tag = (ObjectTagBuilder)t; if (tag.Scope == null) { string fname = CreateFieldForObject(tag.Type, tag.ObjectID); CreatePropertyForObject(tag.Type, tag.ObjectID, fname, true); continue; } if (String.Compare(tag.Scope, "session", true, Helpers.InvariantCulture) == 0) { sessionObjectTags.Add(tag); CreateApplicationOrSessionPropertyForObject(tag.Type, tag.ObjectID, false, false); } else if (String.Compare(tag.Scope, "application", true, Helpers.InvariantCulture) == 0) { applicationObjectTags.Add(tag); CreateFieldForObject(tag.Type, tag.ObjectID); CreateApplicationOrSessionPropertyForObject(tag.Type, tag.ObjectID, true, false); } else { throw new ParseException(tag.Location, "Invalid scope: " + tag.Scope); } } }
internal void Add(ObjectTagBuilder tag) { _Objects.Add(tag.ObjectID, new StaticItem(tag.Type)); }