/// <summary> /// Initialize connection /// </summary> /// <param name="connectionSettings">The connection settings</param> public async Task InitializeConnection(IConnectionSettings connectionSettings) { // TODO: Use ConnectionFactory this.ftpConnection = await FtpConnection.CreateAsync(connectionSettings); this.ftpConnection.PropertyChanged += FtpConnection_PropertyChanged; OnPropertyChanged(() => this.Queue); OnPropertyChanged(() => this.QueuePending); OnPropertyChanged(() => this.QueueFinished); OnPropertyChanged(() => this.FtpFilesystem); }