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(); }
internal override void Dump(DumpContext dumpContext) { base.Dump(dumpContext); dumpContext.Indent(); _sequenceManager.Dump(dumpContext); dumpContext.Unindent(); }
internal void Dump(DumpContext dumpContext) { dumpContext.AppendLine("Sequence Id = " + this._id.ToString() + " Count = " + base.Count.ToString() + " Subscribers = " + this.SubscriberCount.ToString()); dumpContext.Indent(); int num = Math.Min(base.Count, 20); StringBuilder builder = new StringBuilder(); builder.Append("[ "); for (int i = 0; i < num; i++) { if (i > 0) { builder.Append(", "); } Identity identity = this[i]; builder.Append("["); foreach (DictionaryEntry entry in identity) { builder.Append(identity[entry.Key].ToString()); } builder.Append("]"); } builder.Append(" ]"); dumpContext.AppendLine(builder.ToString()); dumpContext.Unindent(); }
internal void Dump(DumpContext dumpContext) { dumpContext.AppendLine("SequenceManager, Items count = " + this._itemIdToItemHash.Count.ToString() + ", Subscribers = " + this._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(); } } }