示例#1
0
 /// <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();
 }
示例#2
0
 /// <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();
 }
示例#3
0
 /// <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);
 }