public MediaResourceDownloadManager(IDownloadService downloadService, IBaseModule module, IContentResourceServcie activityContentResourceService, IConstants constants)
{
this.downloadService = downloadService;
this.baseModule = module;
this.constants = constants;
this.activityContentResourceService = activityContentResourceService;
string oriContent = this.activityContentResourceService.Content;
mediaList = ContentHelper.GetMediaResources(ref oriContent);
this.ResourceList = new List<MapfileItem>();
// Build ResourceList for Mapfile.
foreach (var m in mediaList)
{
MapfileItem f = new MapfileItem();
f.FileName = m;
ResourceList.Add(f);
}
}