/// <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; }