예제 #1
0
 public static async Task <bool> RunPostprocessors(this IPostprocessorsManager postprocessorsManager, LogSourcePostprocessorOutput[] logs, ClickFlags flags)
 {
     return(await postprocessorsManager.RunPostprocessor(
                logs
                .Select(output => new KeyValuePair <ILogSourcePostprocessor, ILogSource>(output.PostprocessorMetadata, output.LogSource))
                .ToArray(),
                forceSourcesSelection : (flags & ClickFlags.AnyModifier) != 0
                ));
 }
예제 #2
0
 void IToastNotificationItem.PerformAction(string actionId)
 {
     ppm.RunPostprocessor(
         ppm.GetPostprocessorOutputsByPostprocessorId(postprocessorId)
         .Select(output => new KeyValuePair <ILogSourcePostprocessor, ILogSource>(output.PostprocessorMetadata, output.LogSource))
         .ToArray(),
         forceSourcesSelection: false
         );
 }