private void Log(Sftp sftp, String message)
 {
     Logger.Log($@"SftpDistributer.Distribute(){Environment.NewLine
                 }sftp.Put(){Environment.NewLine
                 }{sftp.ToString()}{Environment.NewLine
                 }" + message,
                 EventLogEntryType.Information);
 }
 /// <summary>
 /// Distribute via SFTP.
 /// </summary>
 /// <returns>True when succesful.</returns>
 public Boolean Distribute()
 {
     Boolean ok = false;
     Sftp sftp = new Sftp();
     try
     {
         sftp = new Sftp((SftpDistributerOptions)Options);
         ok = sftp.Put();
         Log(sftp, ok ? "*Success*" : "*Failure*");
     }
     catch (Exception xcp)
     {
         Log(sftp, "*Exception*");
         Logger.Log(xcp, EventLogEntryType.Error);
         throw new DistributeException(
             "SftpDistributer Exception", xcp);
     }
     return ok;
 }