/// <summary>
 /// Uploads the File of the FileSync element ot the
 /// Server using the provided ISync Client and returns the created or updated
 /// IRemote Property
 /// </summary>
 /// <param name="client"></param>
 /// <returns></returns>
 public IRemoteProperty Upload(CancellationToken cancleToken, ISyncClient client)
 {
     try
     {
         using (FileStream stream = _info.OpenRead())
         {
             return(client.PutFile(cancleToken, _relativePath, stream));
         }
     } catch (Exception exc)
     {
         _logger.Error("Error occured while uploading file " + RelativePath, exc);
         return(null);
     }
 }