Exemple #1
0
        public virtual void ProcessMessage(IProcessorMessage msg)
        {
            if (!Object.ReferenceEquals(OnFineProcessor, null))
                OnFineProcessor.ProcessMessage(msg);
            if (!Object.ReferenceEquals(OnBadProcessor, null))
                OnBadProcessor.ProcessMessage(msg);

            if (msg is ProcessorMessageExit && Verbose)
            {
                Logger.WriteLine(Tokens.Info, "Found " + NumberOfBads
                    + " bads and " + NumberOfFines + " good ones!");
            }
        }
Exemple #2
0
        public virtual void OnFine(AlbumExplorer.AlbumResult album)
        {
            NumberOfFines++;

            if (!Object.ReferenceEquals(OnFineProcessor, null))
                OnFineProcessor.Process(album);
            if (!Object.ReferenceEquals(FineCallback, null))
                FineCallback(album);

            if (Verbose)
            {
                Logger.WriteLine(Tokens.Info, "FINE: " + album.Directory.FullName);
            }
        }