protected void FileEventHandler(FileWatchInfo sender, IFileWatchEventArgs args)
        {
            IEnumerable <ChangeTrackerRegistrationKey> ctrks = GetAllChangeTrackerRegistrationsByPath(sender.Path);
            MediaSourceChangeType changeType = TranslateChangeType(args.ChangeType);

            foreach (ChangeTrackerRegistrationKey key in ctrks)
            {
                key.PathChangeDelegate(new LocalFsResourceAccessor(this, LocalFsResourceProvider.ToProviderPath(args.Path)),
                                       new LocalFsResourceAccessor(this, LocalFsResourceProvider.ToProviderPath(args.OldPath)), changeType);
            }
        }
 public LocalFsResourceAccessor(LocalFsResourceProvider provider, string path)
 {
   _provider = provider;
   _path = path;
 }
 public LocalFsResourceAccessor(LocalFsResourceProvider provider, string path)
 {
     _provider = provider;
     _path     = path;
 }
예제 #4
0
 public LocalFsResourceProvider()
 {
     _metadata = new ResourceProviderMetadata(LOCAL_FS_RESOURCE_PROVIDER_ID, RES_RESOURCE_PROVIDER_NAME, RES_RESOURCE_PROVIDER_DESCRIPTION, false);
     _instance = this;
 }
 public LocalFsResourceProvider()
 {
   _metadata = new ResourceProviderMetadata(LOCAL_FS_RESOURCE_PROVIDER_ID, RES_RESOURCE_PROVIDER_NAME, RES_RESOURCE_PROVIDER_DESCRIPTION, false, false);
   _instance = this;
 }