Exemplo n.º 1
0
 PostprocessorOutputBuilder IModel.CreatePostprocessorOutputBuilder()
 {
     return(new PostprocessorOutputBuilder
     {
         build = (postprocessorInput, builder) => StateInspectorOutput.SerializePostprocessorOutput(
             builder.events,
             builder.rotatedLogPartToken,
             logPartTokenFactories,
             builder.triggersConverter,
             postprocessorInput.InputContentsEtag,
             postprocessorInput.OutputFileName,
             tempFiles,
             postprocessorInput.CancellationToken
             )
     });
 }
Exemplo n.º 2
0
 Task IModel.SavePostprocessorOutput(
     IEnumerableAsync <Event[]> events,
     Task <ILogPartToken> rotatedLogPartToken,
     Func <object, TextLogEventTrigger> triggersConverter,
     LogSourcePostprocessorInput postprocessorInput
     )
 {
     return(StateInspectorOutput.SerializePostprocessorOutput(
                events,
                rotatedLogPartToken,
                triggersConverter,
                postprocessorInput.InputContentsEtag,
                postprocessorInput.OutputFileName,
                tempFiles,
                postprocessorInput.CancellationToken
                ));
 }