コード例 #1
0
ファイル: DXInfoTracer.cs プロジェクト: zhenghua75/DXInfo
 //internal static void TraceV1ReceivedAnchorOperation(string table, string operation, SyncAnchor anchorValue)
 //{
 //    if (DXInfoTracer.IsVerboseEnabled())
 //    {
 //        string text = "NULL";
 //        if (anchorValue != null && anchorValue.Anchor != null)
 //        {
 //            MemoryStream serializationStream = new MemoryStream(anchorValue.Anchor);
 //            BinaryFormatter binaryFormatter = new BinaryFormatter();
 //            object obj = binaryFormatter.Deserialize(serializationStream);
 //            byte[] array = obj as byte[];
 //            if (array != null)
 //            {
 //                text = BitConverter.ToString(array);
 //            }
 //            else
 //            {
 //                text = obj.ToString();
 //            }
 //        }
 //        DXInfoTracer.Verbose("{0}: {1} ReceivedAnchor value: {2}", new object[]
 //        {
 //            table,
 //            operation,
 //            text
 //        });
 //    }
 //}
 //internal static void TraceV1SentAnchorOperation(string table, string operation, SyncAnchor anchorValue)
 //{
 //    if (DXInfoTracer.IsVerboseEnabled())
 //    {
 //        string text = "NULL";
 //        if (anchorValue != null && anchorValue.Anchor != null)
 //        {
 //            text = BitConverter.ToUInt64(anchorValue.Anchor, 0).ToString(CultureInfo.InvariantCulture);
 //        }
 //        DXInfoTracer.Verbose("{0}: {1} SentAnchor value: {2}", new object[]
 //        {
 //            table,
 //            operation,
 //            text
 //        });
 //    }
 //}
 internal static void TraceCommandAndParameters(IDbCommand command)
 {
     DXInfoTracer.TraceCommandAndParameters(1, command);
 }