protected void RegisterProvider(IResourceProvider provider) { lock (_syncObj) _providers.Add(provider.Metadata.ResourceProviderId, provider); MediaAccessorMessaging.SendResourceProviderMessage(MediaAccessorMessaging.MessageType.ResourceProviderAdded, provider.Metadata.ResourceProviderId); }
protected void RegisterMetadataExtractor(IMetadataExtractor metadataExtractor) { lock (_syncObj) _metadataExtractors.Add(metadataExtractor.Metadata.MetadataExtractorId, metadataExtractor); MediaAccessorMessaging.SendResourceProviderMessage(MediaAccessorMessaging.MessageType.MetadataExtractorAdded, metadataExtractor.Metadata.MetadataExtractorId); }