Ejemplo n.º 1
0
 /* ----------------------------------------------------------------- */
 ///
 /// Log
 ///
 /// <summary>
 /// Puts debug information to the log file.
 /// </summary>
 ///
 /// <param name="src">Port monitor object.</param>
 /// <param name="method">Method name.</param>
 ///
 /* ----------------------------------------------------------------- */
 public static void Log(this PortMonitor src,
                        [CallerMemberName] string method = null) => src.Put(
     $"[{method}]",
     $"{nameof(src.Name)}:{src.Name.Quote()}",
     $"{nameof(src.Exists)}:{src.Exists}",
     $"{nameof(src.CanInstall)}:{src.CanInstall()}",
     $"{nameof(src.Environment)}:{src.Environment.Quote()}",
     $"{nameof(src.FileName)}:{src.FileName.Quote()}",
     $"{nameof(src.Config)}:{src.Config.Quote()}",
     $"{nameof(src.TargetDirectory)}:{src.TargetDirectory.Quote()}"
     );