public ContactDirectory WatchDirecotry(DirectoryMetadata Directory) { ContactDirectory tempDirectory = new ContactDirectory(DirectoriesManager, Directory); tempDirectory.StartWatching(); return(tempDirectory); }
public void WatchDirectory(DirectoryMetadataCategory directoryMetaDataCategory) { foreach (DirectoryMetadata d in DirectoryConfiguration.GetList()) { if (d.Category == directoryMetaDataCategory) { WatchedDirectory = new ContactDirectory(DirectoriesManager, d); WatchedDirectory.StartWatching(); } } }