static public void AppendData(StringBuilder sb, ReflectInsightPackage package) { if (package.IsDetail <DetailContainerDataSet>()) { using (DetailContainerDataSet dsc = package.GetDetails <DetailContainerDataSet>()) { AppendDataSet(sb, dsc.FData); } } else { using (DetailContainerDataTable tc = package.GetDetails <DetailContainerDataTable>()) { sb.AppendFormat("[{0}]{1}", tc.FData.TableName, Environment.NewLine); AppendDataTable(sb, tc.FData); } } }
static public void AppendMessageDetails(StringBuilder sb, ReflectInsightPackage package, MessageTextFlag flags) { if (((flags & MessageTextFlag.Details) != MessageTextFlag.Details) || !package.HasDetails) { return; } if (package.IsDetail <DetailContainerString>()) { sb.AppendLine(); sb.AppendLine(package.GetDetails <DetailContainerString>().FData); sb.AppendLine(); return; } switch (package.FMessageType) { case MessageType.EnterMethod: case MessageType.SendObject: case MessageType.SendProcessInformation: case MessageType.SendThreadInformation: case MessageType.SendSystemInformation: case MessageType.SendLoadedAssemblies: case MessageType.SendLoadedProcesses: case MessageType.SendAppDomainInformation: case MessageType.SendMemoryStatus: case MessageType.SendHttpModuleInformation: case MessageType.SendMiniDumpFile: case MessageType.SendCustomData: case MessageType.SendHttpRequest: sb.AppendLine(); AppendCustomData(sb, package); sb.AppendLine(); break; case MessageType.SendCollection: sb.AppendLine(); AppendCollection(sb, package); sb.AppendLine(); break; case MessageType.SendDataSet: case MessageType.SendDataTable: case MessageType.SendDataView: case MessageType.SendDataSetSchema: case MessageType.SendDataTableSchema: case MessageType.SendLinqResults: case MessageType.SendTypedCollection: sb.AppendLine(); AppendData(sb, package); sb.AppendLine(); break; case MessageType.SendMemory: case MessageType.SendStream: sb.AppendLine(); AppendMemory(sb, package); sb.AppendLine(); break; case MessageType.SendColor: sb.AppendLine(); AppendColor(sb, package); sb.AppendLine(); break; default: break; } }
static public void AppendCollection(StringBuilder sb, ReflectInsightPackage package) { AppendCollection(sb, package.GetDetails <RICustomData>()); }
static private void AppendCustomData(StringBuilder sb, ReflectInsightPackage package) { AppendCustomData(sb, package.GetDetails <RICustomData>()); }
static public void AppendMemory(StringBuilder sb, ReflectInsightPackage package) { AppendMemory(sb, package.GetDetails <DetailContainerByteArray>().FData); }
static public void AppendColor(StringBuilder sb, ReflectInsightPackage package) { AppendColor(sb, package.GetDetails <ReflectInsightColorInfo>()); }