コード例 #1
0
		internal override void Dump(DumpContext dumpContext)
		{
			base.Dump(dumpContext);
			dumpContext.Indent();
			_sequenceManager.Dump(dumpContext);
			dumpContext.Unindent();
		}
コード例 #2
0
ファイル: Sequence.cs プロジェクト: Nicholi/fluorinefx-mod
		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();
		}
コード例 #3
0
ファイル: Destination.cs プロジェクト: Nicholi/fluorinefx-mod
		internal virtual void Dump(DumpContext dumpContext)
		{
			dumpContext.AppendLine("Destination Id = " + this.Id);
		}
コード例 #4
0
ファイル: SequenceManager.cs プロジェクト: Boreeas/LoLNotes
		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");
			}
		}