예제 #1
0
파일: Model.cs 프로젝트: rkapl123/logjoint
 PostprocessorOutputBuilder IModel.CreatePostprocessorOutputBuilder()
 {
     return(new PostprocessorOutputBuilder
     {
         build = (postprocessorInput, builder) => TimelinePostprocessorOutput.SerializePostprocessorOutput(
             builder.events,
             builder.rotatedLogPartToken,
             logPartTokenFactories,
             builder.triggersConverter,
             postprocessorInput.InputContentsEtag,
             postprocessorInput.openOutputFile,
             tempFiles,
             postprocessorInput.CancellationToken
             )
     });
 }
예제 #2
0
 Task IModel.SavePostprocessorOutput(
     IEnumerableAsync <Event[]> events,
     Task <ILogPartToken> rotatedLogPartToken,
     Func <object, TextLogEventTrigger> triggersConverter,
     LogSourcePostprocessorInput postprocessorInput
     )
 {
     return(TimelinePostprocessorOutput.SerializePostprocessorOutput(
                events,
                rotatedLogPartToken,
                triggersConverter,
                postprocessorInput.InputContentsEtag,
                postprocessorInput.OutputFileName,
                tempFiles,
                postprocessorInput.CancellationToken
                ));
 }