示例#1
0
        protected override InterceptionAction InterceptCore(Message messageData)
        {
            AllFilesFoundMessage files = messageData.Get <AllFilesFoundMessage>();

            AllRelevantFilesFoundMessage.Decorate(files, files.Infos.Where(i => i.IsRelevantFile()));
            return(InterceptionAction.Continue);
        }
示例#2
0
 public static AllRelevantFilesFoundMessage Decorate(AllFilesFoundMessage declaredMessage, IEnumerable <FileInfo> relevantFiles)
 {
     return(new AllRelevantFilesFoundMessage(declaredMessage, relevantFiles));
 }