resume support is read only WINSCP5.2.4BETA

Advertisement

rjthannam
Joined:
Posts:
1
Location:
United Kingdom

resume support is read only WINSCP5.2.4BETA

Hi - Thanks for fixing the transfer resume support in the .net library however I cant set the state as the resume support property is set to be read-only

running windows 8 with 3.5 framework

my code for setting resume state
TransferOptions transferOptions = new TransferOptions();
transferOptions.TransferMode = TransferMode.Binary;

TransferResumeSupport trs = null; //no constructor so i leave as null to create object
trs.State = TransferResumeSupportState.Off;
trs.Threshold = 0;
transferOptions.ResumeSupport = trs; // <-- this line fails as Resume support is read only

Transfer options class
public sealed class TransferOptions
{
public TransferOptions();

public string FileMask { get; set; }
public FilePermissions FilePermissions { get; set; }
public bool PreserveTimestamp { get; set; }
public TransferResumeSupport ResumeSupport { get; }
public TransferMode TransferMode { get; set; }
}

Apologies if this has already been reported I couldn't find any mention of it
Richard

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,506
Location:
Prague, Czechia

Re: resume support is read only WINSCP5.2.4BETA

An instance of TransferResumeSupport is auto-created by TransferOptions constructor. Just set it's properties.
transferOptions.ResumeSupport.State = TransferResumeSupportState.Off;

Reply with quote

Advertisement

You can post new topics in this forum