| 1234567891011121314151617181920212223242526272829303132333435363738394041 | using System;using System.Collections.Generic;using System.Linq;using System.Text;using Renci.SshNet.Sftp.Responses;namespace Renci.SshNet.Sftp.Requests{    internal class SftpSymLinkRequest : SftpRequest    {        public override SftpMessageTypes SftpMessageType        {            get { return SftpMessageTypes.SymLink; }        }        public string NewLinkPath { get; set; }        public string ExistingPath { get; set; }        public SftpSymLinkRequest(uint requestId, string newLinkPath, string existingPath, Action<SftpStatusResponse> statusAction)            : base(requestId, statusAction)        {            this.NewLinkPath = newLinkPath;            this.ExistingPath = existingPath;        }        protected override void LoadData()        {            base.LoadData();            this.NewLinkPath = this.ReadString();            this.ExistingPath = this.ReadString();        }        protected override void SaveData()        {            base.SaveData();            this.Write(this.NewLinkPath);            this.Write(this.ExistingPath);        }    }}
 |