/// <summary> /// Connects to the remote location and checks the remote version number /// </summary> /// <exception cref="InvalidRemoteVersion">If the file on the given location is in an invalid format</exception> /// <returns>The remote version number</returns> public async Task <double> GetRemoteVersionNumberAsync() { var networkReader = RemoteFileReader.GetInstance(); networkReader.RemoteLocation = _remoteLocation; await networkReader.ReadRemoteFileAsync(); return(_remoteVersionRetreiveTask(networkReader.Configuration.GetValue("version"))); }
/// <summary> /// Default constructor /// </summary> /// <param name="_remoteLocation">The URL where the remote Eugene file is located</param> public RemoteDownloadLocation(string _remoteLocation) { _remoteFileReader = RemoteFileReader.GetInstance(); _remoteFileReader.RemoteLocation = _remoteLocation; }