Esempio n. 1
0
 protected void RegisterFanArtHandler(IMediaFanArtHandler fanartHandler)
 {
     lock (_syncObj)
         _fanartHandlers.Add(fanartHandler.Metadata.FanArtHandlerId, fanartHandler);
     MediaAccessorMessaging.SendMergeHandlerMessage(MediaAccessorMessaging.MessageType.FanArtHandlerAdded, fanartHandler.Metadata.FanArtHandlerId);
 }
Esempio n. 2
0
 protected void RegisterMergeHandler(IMediaMergeHandler mergeHandler)
 {
     lock (_syncObj)
         _mergeHandlers.Add(mergeHandler.Metadata.MergeHandlerId, mergeHandler);
     MediaAccessorMessaging.SendMergeHandlerMessage(MediaAccessorMessaging.MessageType.MergeHandlerAdded, mergeHandler.Metadata.MergeHandlerId);
 }
Esempio n. 3
0
 protected void RegisterMetadataExtractor(IMetadataExtractor metadataExtractor)
 {
     lock (_syncObj)
         _metadataExtractors.Add(metadataExtractor.Metadata.MetadataExtractorId, metadataExtractor);
     MediaAccessorMessaging.SendMetadataExtractorMessage(MediaAccessorMessaging.MessageType.MetadataExtractorAdded, metadataExtractor.Metadata.MetadataExtractorId);
 }
Esempio n. 4
0
 protected void RegisterRelationshipExtractor(IRelationshipExtractor relationshipExtractor)
 {
     lock (_syncObj)
         _relationshipExtractors.Add(relationshipExtractor.Metadata.RelationshipExtractorId, relationshipExtractor);
     MediaAccessorMessaging.SendRelationshipExtractorMessage(MediaAccessorMessaging.MessageType.RelationshipExtractorAdded, relationshipExtractor.Metadata.RelationshipExtractorId);
 }
Esempio n. 5
0
 protected void RegisterProvider(IResourceProvider provider)
 {
     lock (_syncObj)
         _providers.Add(provider.Metadata.ResourceProviderId, provider);
     MediaAccessorMessaging.SendResourceProviderMessage(MediaAccessorMessaging.MessageType.ResourceProviderAdded, provider.Metadata.ResourceProviderId);
 }