예제 #1
0
        public FileProvider(IPaths pathManager, IInterfaceFinder interfaceFinder)
        {
            foreach (var file in Directory.GetFiles(pathManager.GetPath("Words")))
            {
                available.Add(Assembly.GetAssembly(typeof(FileProvider)).GetName().Name + ".File." + Path.GetFileNameWithoutExtension(file), () => new FileController(interfaceFinder, file));
            }

            this.interfaceFinder = interfaceFinder;
        }
예제 #2
0
 public FileController(IInterfaceFinder interfaceFinder, string path)
 {
     this.interfaceFinder = interfaceFinder;
     this.path            = path;
     ObservePath(path);
 }