protected override InterceptionAction InterceptCore(Message messageData) { AllFilesFoundMessage files = messageData.Get <AllFilesFoundMessage>(); AllRelevantFilesFoundMessage.Decorate(files, files.Infos.Where(i => i.IsRelevantFile())); return(InterceptionAction.Continue); }
public static AllRelevantFilesFoundMessage Decorate(AllFilesFoundMessage declaredMessage, IEnumerable <FileInfo> relevantFiles) { return(new AllRelevantFilesFoundMessage(declaredMessage, relevantFiles)); }