Don't use DirectoryResourceRepository that has been disposed.