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 )); }
void IToastNotificationItem.PerformAction(string actionId) { ppm.RunPostprocessor( ppm.GetPostprocessorOutputsByPostprocessorId(postprocessorId) .Select(output => new KeyValuePair <ILogSourcePostprocessor, ILogSource>(output.PostprocessorMetadata, output.LogSource)) .ToArray(), forceSourcesSelection: false ); }