BetterCms.Module.MediaManager.Services.DefaultMediaImageService.StartTasksForImage C# (CSharp) Method

StartTasksForImage() private method

private StartTasksForImage ( BetterCms.Module.MediaManager.Models.MediaImage mediaImage, Stream fileStream, MemoryStream thumbnailFileStream, bool shouldNotUploadOriginal = false, bool waitForUploadResult = false ) : void
mediaImage BetterCms.Module.MediaManager.Models.MediaImage
fileStream Stream
thumbnailFileStream System.IO.MemoryStream
shouldNotUploadOriginal bool
waitForUploadResult bool
return void
        private void StartTasksForImage(
            MediaImage mediaImage,
            Stream fileStream,
            MemoryStream thumbnailFileStream,
            bool shouldNotUploadOriginal = false,
            bool waitForUploadResult = false)
        {
            if (waitForUploadResult)
            {
                StartTasksForImageSync(mediaImage, fileStream, thumbnailFileStream, shouldNotUploadOriginal);
            }
            else
            {
                StartTasksForImageAsync(mediaImage, fileStream, thumbnailFileStream, shouldNotUploadOriginal);
            }
        }