Exemplo n.º 1
0
        public void SetupFileSource(FileSourceMatchInfo source)
        {
            FileSourceHierarchicalPathMatcher matcher = new FileSourceHierarchicalPathMatcher(source);

            Include = new List <IPathMatcher>()
            {
                new FileSourceStateMatcher(FileDispositionStates.Include, matcher)
            };
            Exclude = new List <IPathMatcher>()
            {
                new FileSourceStateMatcher(FileDispositionStates.Exclude, matcher)
            };
            CopyOnly = new List <IPathMatcher>()
            {
                new FileSourceStateMatcher(FileDispositionStates.CopyOnly, matcher)
            };
            Rename = source.Renames ?? new Dictionary <string, string>(StringComparer.Ordinal);
        }
 public FileSourceStateMatcher(FileDispositionStates checkState, FileSourceHierarchicalPathMatcher stateMatcher)
 {
     _checkState   = checkState;
     _stateMatcher = stateMatcher;
 }