Biz.Managers.UnitContentResourceDownloadManager.UnitContentResourceDownloadManager C# (CSharp) Method

UnitContentResourceDownloadManager() public method

public UnitContentResourceDownloadManager ( IDownloadService downloadService, IBaseModule unit, IContentResourceServcie unitContentService, IConstants constants ) : System
downloadService IDownloadService
unit IBaseModule
unitContentService IContentResourceServcie
constants IConstants
return System
        public UnitContentResourceDownloadManager(IDownloadService downloadService, IBaseModule unit, IContentResourceServcie unitContentService, IConstants constants)
        {
            this.downloadService = downloadService;
            this.constants = constants;
            this.unitContentService = unitContentService;

            this.Unit = unit as Unit;

            var originalContent = unitContentService.Content;

            // Replace swf to jpg, flv to mp4
            ContentHelper.ReplaceUrlFileFormat(ref originalContent);
            ContentHelper.ReplaceUrlToLocalResourcePath(ref originalContent);

            this.updatedContent = originalContent;

            this.ResourceList = new List<MapfileItem>();
            this.BuildDownloadResource();
        }