/// <summary> /// A synchronous version of <see cref="INfieldMediaFilesService.RemoveAsync"/> /// </summary> public static void Remove(this INfieldMediaFilesService mediaFilesService, string surveyId, string fileName) { mediaFilesService.RemoveAsync(surveyId, fileName).Wait(); }
/// <summary> /// A synchronous version of <see cref="INfieldMediaFilesService.AddOrUpdateAsync"/> /// </summary> public static void AddOrUpdate(this INfieldMediaFilesService mediaFilesService, string surveyId, string fileName, byte[] content) { mediaFilesService.AddOrUpdateAsync(surveyId, fileName, content).Wait(); }
/// <summary> /// A synchronous version of <see cref="INfieldMediaFilesService.QueryAsync"/> /// </summary> public static IQueryable <string> Query(this INfieldMediaFilesService mediaFilesService, string surveyId) { return(mediaFilesService.QueryAsync(surveyId).Result); }