public ManifestSuperBlock(MashupParseContext context, Manifest.TellManifestDirty tellDirty) { this.tellDirty = tellDirty; XMLTagReader xMLTagReader = context.NewTagReader(Manifest.ManifestSuperBlock.GetXmlTag()); this._nextUnassignedBlockId = context.GetRequiredAttributeInt("NextUnassignedBlockId"); this._splitThreshold = context.GetRequiredAttributeInt("SplitThreshold"); xMLTagReader.SkipAllSubTags(); }
public ManifestBlock(Manifest.TellManifestDirty tellManifestDirty, RenderOutputMethod outputMethod, int blockId) { this.tellManifestDirty = tellManifestDirty; this.blockId = blockId; try { Stream input = outputMethod.MakeChildMethod("manifests").ReadFile(this.manifestFilename(blockId)); XmlTextReader xmlTextReader = new XmlTextReader(input); using (xmlTextReader) { MashupParseContext mashupParseContext = new MashupParseContext(xmlTextReader); while (mashupParseContext.reader.Read()) { if (mashupParseContext.reader.NodeType == XmlNodeType.Element && mashupParseContext.reader.Name == "ManifestBlock") { XMLTagReader xMLTagReader = mashupParseContext.NewTagReader("ManifestBlock"); while (xMLTagReader.FindNextStartTag()) { if (xMLTagReader.TagIs(Manifest.ManifestRecord.GetXmlTag())) { this.recordList.Add(new Manifest.ManifestRecord(mashupParseContext, this)); } else { if (xMLTagReader.TagIs(Manifest.ManifestSuperBlock.GetXmlTag())) { this._superBlock = new Manifest.ManifestSuperBlock(mashupParseContext, new Manifest.TellManifestDirty(this.SetDirty)); } } } return; } } throw new InvalidMashupFile(mashupParseContext, "No ManifestBlock tag"); } } catch (Exception) { } finally { if (blockId == 0 && this._superBlock == null) { this._superBlock = new Manifest.ManifestSuperBlock(1, new Manifest.TellManifestDirty(this.SetDirty)); } } }
public ManifestSuperBlock(int nextUnassignedBlockId, Manifest.TellManifestDirty tellDirty) { this._nextUnassignedBlockId = nextUnassignedBlockId; this.tellDirty = tellDirty; }