Exemplo n.º 1
0
 public override void Construct()
 {
     _type = (SshActionType)Enum.Parse(typeof(SshActionType), Details[0]);
     _sshActionData = new SshActionData() { Host = Details[1], UserName = Details[2], Password = Details[3], Command = Details[4], LogFileName = Details[5] };
 }
Exemplo n.º 2
0
        public SshAction(SshActionType type, SshActionData actionData)
            : base(Enums.ActionTypeId.SSH)
        {
            _sshActionData = actionData;
            _type = type;

            Details.Add(type.ToString());
            Details.Add(_sshActionData.Host); //1
            Details.Add(_sshActionData.UserName); //2
            Details.Add(_sshActionData.Password); //3
            Details.Add(_sshActionData.Command); //4
            Details.Add(_sshActionData.LogFileName); //6
        }