コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public LocalFsResourceAccessor(LocalFsResourceProvider provider, string path)
 {
   _provider = provider;
   _path = path;
 }
コード例 #3
0
 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;
 }
コード例 #5
0
 public LocalFsResourceProvider()
 {
   _metadata = new ResourceProviderMetadata(LOCAL_FS_RESOURCE_PROVIDER_ID, RES_RESOURCE_PROVIDER_NAME, RES_RESOURCE_PROVIDER_DESCRIPTION, false, false);
   _instance = this;
 }