コード例 #1
0
ファイル: SequenceManager.cs プロジェクト: GodLesZ/svn-dump
		internal void Dump(DumpContext dumpContext) {
			dumpContext.AppendLine("SequenceManager, Items count = " + _itemIdToItemHash.Count.ToString() + ", Subscribers = " + _clientIdToSequenceHash.Count.ToString());
			Sequence[] sequences = this.GetSequences();
			if (sequences.Length > 0) {
				dumpContext.AppendLine("Sequences");
				foreach (Sequence sequence in sequences) {
					dumpContext.Indent();
					sequence.Dump(dumpContext);
					dumpContext.Unindent();
				}
			} else {
				//dumpContext.AppendLine("No sequences");
			}
		}
コード例 #2
0
ファイル: DataDestination.cs プロジェクト: GodLesZ/svn-dump
		internal override void Dump(DumpContext dumpContext) {
			base.Dump(dumpContext);
			dumpContext.Indent();
			_sequenceManager.Dump(dumpContext);
			dumpContext.Unindent();
		}
コード例 #3
0
ファイル: Sequence.cs プロジェクト: GodLesZ/svn-dump
		internal void Dump(DumpContext dumpContext) {
			dumpContext.AppendLine("Sequence Id = " + _id.ToString() + " Count = " + this.Count.ToString() + " Subscribers = " + this.SubscriberCount.ToString());
			dumpContext.Indent();
			int count = Math.Min(this.Count, 20);
			StringBuilder sb = new StringBuilder();
			sb.Append("[ ");
			for (int i = 0; i < count; i++) {
				if (i > 0)
					sb.Append(", ");
				Identity identity = this[i];
				sb.Append("[");
				foreach (DictionaryEntry entry in identity) {
					sb.Append(identity[entry.Key].ToString());
				}
				sb.Append("]");
			}
			sb.Append(" ]");
			dumpContext.AppendLine(sb.ToString());
			dumpContext.Unindent();
		}