/// <summary> /// Получает ссылку на удаленный FTP репозиторий /// </summary> /// <param name="ftpRepositoryInfo">Информация о FTP репозитории</param> /// <param name="locomotiveName">Название локомотива</param> /// <param name="sectionName">Назваине секции</param> /// <param name="psnConfiguration">Конфигурация магистрали ПСН</param> /// <returns>Ссылка на репозиторий</returns> public IRepository GetFtpRepository(IFtpRepositoryInfo ftpRepositoryInfo, string locomotiveName, string sectionName, IPsnProtocolConfig psnConfiguration) { return(GetFtpClientRepository( ftpRepositoryInfo.FtpHost, ftpRepositoryInfo.FtpPort, ftpRepositoryInfo.FtpUsername, ftpRepositoryInfo.FtpPassword, ftpRepositoryInfo.DeviceNumber, locomotiveName, sectionName, psnConfiguration)); }
public FtpRepositoryInfoViewModel(IFtpRepositoryInfo ftpRepositoryInfo, IDeviceInfoRepository deviceInfoRepository) { _ftpRepositoryInfo = ftpRepositoryInfo; var deviceInfo = deviceInfoRepository.GetByDeviceNumber(_ftpRepositoryInfo.DeviceNumber); if (deviceInfo != null) { IsNameSet = true; LocomotiveName = deviceInfo.LocomotiveName; SectionName = "Секция " + deviceInfo.SectionNumber; } }
public IRepository GetFtpRepository(IFtpRepositoryInfo ftpRepositoryInfo, string locomotiveName, string sectionName, IPsnConfiguration psnConfiguration) { throw new NotImplementedException(); }