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; }
public FileController(IInterfaceFinder interfaceFinder, string path) { this.interfaceFinder = interfaceFinder; this.path = path; ObservePath(path); }