Beagrep.Daemon.FilterFactory.ShouldWeFilterThis C# (CSharp) Метод

ShouldWeFilterThis() приватный статический Метод

private static ShouldWeFilterThis ( Indexable indexable ) : bool
indexable Indexable
Результат bool
        private static bool ShouldWeFilterThis(Indexable indexable)
        {
            if (indexable.Filtering == IndexableFiltering.Never
                || indexable.NoContent)
                return false;

            if (indexable.Filtering == IndexableFiltering.Always)
                return true;

            // Our default behavior is to try to filter non-transient file
            // indexable and indexables with a specific mime type attached.
            if (indexable.IsNonTransient || indexable.MimeType != null)
                return true;

            return false;
        }