예제 #1
0
 public override void Construct()
 {
     _type = (SftpActionType)Enum.Parse(typeof(SftpActionType), Details[0]);
     _sftpActionData = new SftpActionData() { Host = Details[1], UserName = Details[2], Password = Details[3], Command1 = Details[4], Command2 = Details[5] };
 }
예제 #2
0
        public SftpAction(SftpActionType type, SftpActionData actionData)
            : base(Enums.ActionTypeId.Sftp)
        {
            _sftpActionData = actionData;
            _type = type;

            Details.Add(type.ToString());
            Details.Add(_sftpActionData.Host); //1
            Details.Add(_sftpActionData.UserName); //2
            Details.Add(_sftpActionData.Password); //3
            Details.Add(_sftpActionData.Command1); //4
            Details.Add(_sftpActionData.Command2); //4
        }