Exemplo n.º 1
0
 public override string ToString()
 {
     if (string.IsNullOrWhiteSpace(MessageType))
     {
         return($"{CreatedUtc.ToString("dd-MM-yyyy HH:mm:ss")} | {Message} | {StackTrace}");
     }
     return($"{CreatedUtc.ToString("dd-MM-yyyy HH:mm:ss")} | {MessageType} | {Message} | {StackTrace}");
 }
Exemplo n.º 2
0
        /// <summary>
        /// Human-readable string version of the object.
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            string ret =
                "--- DedupeObject ---" + Environment.NewLine +
                "    Key        : " + Key + Environment.NewLine +
                "    Length     : " + Length + Environment.NewLine +
                "    CreatedUtc : " + CreatedUtc.ToString() + Environment.NewLine +
                "    Chunks     : " + Chunks.Count + Environment.NewLine +
                "    ObjectMap  : " + ObjectMap.Count;

            return(ret);
        }