private void FindParts() { if (!ConfigurationManager.Configuration.IsPortAuthorized) { ConfigurationManager.Configuration.IsPortAuthorized = true; ConfigurationManager.SaveConfiguration(); } _pluginManager.CreatePlugins(); _urlPrefixes = GetUrlPrefixes().ToArray(); Resolve <ILibraryManager>().AddParts( GetExports <IResolverIgnoreRule>(), GetExports <IItemResolver>(), GetExports <IIntroProvider>(), GetExports <IBaseItemComparer>(), GetExports <ILibraryPostScanTask>()); Resolve <IProviderManager>().AddParts( GetExports <IImageProvider>(), GetExports <IMetadataService>(), GetExports <IMetadataProvider>(), GetExports <IMetadataSaver>(), GetExports <IExternalId>()); Resolve <ILiveTvManager>().AddParts(GetExports <ILiveTvService>(), GetExports <ITunerHost>(), GetExports <IListingsProvider>()); Resolve <ISubtitleManager>().AddParts(GetExports <ISubtitleProvider>()); Resolve <IChannelManager>().AddParts(GetExports <IChannel>()); Resolve <IMediaSourceManager>().AddParts(GetExports <IMediaSourceProvider>()); Resolve <INotificationManager>().AddParts(GetExports <INotificationService>(), GetExports <INotificationTypeFactory>()); }