Пример #1
0
 public override bool IsValid(out string error)
 {
     if (!string.IsNullOrEmpty(DeployTarget) && !DeployTarget.IsValidFtpAdress())
     {
         error = ToStringDescription() + " : The FTP rule has an incorrect deployment target, it should follow the pattern ftp://user:pass@server:port/distantpath/ (with user/pass/port being optional)";
         return(false);
     }
     return(base.IsValid(out error));
 }
Пример #2
0
 public override bool IsValid(out string error)
 {
     if (!string.IsNullOrEmpty(DeployTarget) && !DeployTarget.ContainsFast(ArchiveExt))
     {
         error = ToStringDescription() + " : The rule has an incorrect deployment target, it should contain a file with the extension " + ArchiveExt;
         return(false);
     }
     return(base.IsValid(out error));
 }