public bool GetContainer( IReader <T> reader, out IContainer <T> container) { T configuration; if (reader.Read(out configuration) == false) { container = null; return(false); } container = _containerFactory.GetContainer(_notifyManagerFactory.GetNotifyManager(), configuration, reader); var containerCopy = container; _fileChangeWatcherFactory.GetFileChangeWatcher(_filePath, () => containerCopy.ChangeNotifier.Inform()); return(true); }