private CreatorStepData CreateStepData(IDataReceivedHandler dataReceivedHandler, IEncodeStringBuilder encodeStringBuilder) { var nextStepData = new CreatorStepData { EncoderState = EncoderState.Completed, DataReceivedHandler = dataReceivedHandler, EncodeStringBuilder = encodeStringBuilder }; return(nextStepData); }
public override void Execute(CancellationTokenSourceWrapper tokenSource) { IEncodeCreator creator = _creatorFactory.Create(StepData.EncodeData); IFfmpegParser ffmpegParser = creator.CreateFfmpegParser(); IDataReceivedHandler dataReceivedHandler = creator.CreateDataReceivedHandler(ffmpegParser); IEncodeStringFactory encodeStringFactory = creator.CreateEncodeStringFactory(); IEncodeStringBuilder encodeStringBuilder = creator.CreateEncodeStringBuilder(_tempFileManager, encodeStringFactory); CreatorStepData nextStepData = CreateStepData(dataReceivedHandler, encodeStringBuilder); Mediator.Send(nextStepData, this); }