本文整理汇总了C#中IProviderManager类的典型用法代码示例。如果您正苦于以下问题:C# IProviderManager类的具体用法?C# IProviderManager怎么用?C# IProviderManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IProviderManager类属于命名空间,在下文中一共展示了IProviderManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Refresh
public async Task<IEnumerable<ChannelItemInfo>> Refresh(IProviderManager providerManager,
IHttpClient httpClient,
string url,
INotificationManager notificationManager,
CancellationToken cancellationToken)
{
var options = new HttpRequestOptions
{
Url = url,
CancellationToken = cancellationToken,
// Seeing some deflate stream errors
EnableHttpCompression = false
};
using (Stream stream = await httpClient.Get(options).ConfigureAwait(false))
{
using (var reader = new StreamReader(stream))
{
XDocument document = XDocument.Parse(reader.ReadToEnd());
var x = from c in document.Root.Element("channel").Elements("item") select c;
return x.Select(CreatePodcast).Where(i => i != null);
}
}
}
开发者ID:curtisghanson,项目名称:Emby.Channels,代码行数:26,代码来源:RSSFeed.cs
示例2: PluginController
public PluginController(IPluginFinder pluginFinder,
IPermissionService permissionService,
ILanguageService languageService,
PaymentSettings paymentSettings,
ShippingSettings shippingSettings,
TaxSettings taxSettings,
ExternalAuthenticationSettings externalAuthenticationSettings,
WidgetSettings widgetSettings,
IProviderManager providerManager,
PluginMediator pluginMediator,
ICommonServices commonService)
{
this._pluginFinder = pluginFinder;
this._permissionService = permissionService;
this._languageService = languageService;
this._paymentSettings = paymentSettings;
this._shippingSettings = shippingSettings;
this._taxSettings = taxSettings;
this._externalAuthenticationSettings = externalAuthenticationSettings;
this._widgetSettings = widgetSettings;
this._providerManager = providerManager;
this._pluginMediator = pluginMediator;
this._commonService = commonService;
T = NullLocalizer.Instance;
}
开发者ID:boatengfrankenstein,项目名称:SmartStoreNET,代码行数:26,代码来源:PluginController.cs
示例3: OrderTotalCalculationService
/// <summary>
/// Ctor
/// </summary>
/// <param name="workContext">Work context</param>
/// <param name="storeContext">Store context</param>
/// <param name="priceCalculationService">Price calculation service</param>
/// <param name="taxService">Tax service</param>
/// <param name="shippingService">Shipping service</param>
/// <param name="paymentService">Payment service</param>
/// <param name="checkoutAttributeParser">Checkout attribute parser</param>
/// <param name="discountService">Discount service</param>
/// <param name="giftCardService">Gift card service</param>
/// <param name="genericAttributeService">Generic attribute service</param>
/// <param name="taxSettings">Tax settings</param>
/// <param name="rewardPointsSettings">Reward points settings</param>
/// <param name="shippingSettings">Shipping settings</param>
/// <param name="shoppingCartSettings">Shopping cart settings</param>
/// <param name="catalogSettings">Catalog settings</param>
public OrderTotalCalculationService(IWorkContext workContext,
IStoreContext storeContext,
IPriceCalculationService priceCalculationService,
ITaxService taxService,
IShippingService shippingService,
IProviderManager providerManager,
ICheckoutAttributeParser checkoutAttributeParser,
IDiscountService discountService,
IGiftCardService giftCardService,
IGenericAttributeService genericAttributeService,
IProductAttributeParser productAttributeParser,
TaxSettings taxSettings,
RewardPointsSettings rewardPointsSettings,
ShippingSettings shippingSettings,
ShoppingCartSettings shoppingCartSettings,
CatalogSettings catalogSettings)
{
this._workContext = workContext;
this._storeContext = storeContext;
this._priceCalculationService = priceCalculationService;
this._taxService = taxService;
this._shippingService = shippingService;
this._providerManager = providerManager;
this._checkoutAttributeParser = checkoutAttributeParser;
this._discountService = discountService;
this._giftCardService = giftCardService;
this._genericAttributeService = genericAttributeService;
this._productAttributeParser = productAttributeParser;
this._taxSettings = taxSettings;
this._rewardPointsSettings = rewardPointsSettings;
this._shippingSettings = shippingSettings;
this._shoppingCartSettings = shoppingCartSettings;
this._catalogSettings = catalogSettings;
}
开发者ID:mandocaesar,项目名称:Mesinku,代码行数:52,代码来源:OrderTotalCalculationService.cs
示例4: EntryPoint
public EntryPoint(IUserDataManager userDataManager, ILibraryManager libraryManager, ILogger logger, IProviderManager providerManager)
{
_userDataManager = userDataManager;
_libraryManager = libraryManager;
_logger = logger;
_providerManager = providerManager;
}
开发者ID:WWWesten,项目名称:MediaBrowser.Plugins,代码行数:7,代码来源:EntryPoint.cs
示例5: ItemImageProvider
public ItemImageProvider(ILogger logger, IProviderManager providerManager, IServerConfigurationManager config, IFileSystem fileSystem)
{
_logger = logger;
_providerManager = providerManager;
_config = config;
_fileSystem = fileSystem;
}
开发者ID:Ceten,项目名称:MediaBrowser,代码行数:7,代码来源:ItemImageProvider.cs
示例6: LastfmArtistProvider
/// <summary>
/// Initializes a new instance of the <see cref="LastfmArtistProvider"/> class.
/// </summary>
/// <param name="jsonSerializer">The json serializer.</param>
/// <param name="httpClient">The HTTP client.</param>
/// <param name="logManager">The log manager.</param>
/// <param name="configurationManager">The configuration manager.</param>
/// <param name="providerManager">The provider manager.</param>
/// <param name="libraryManager">The library manager.</param>
public LastfmArtistProvider(IJsonSerializer jsonSerializer, IHttpClient httpClient, ILogManager logManager, IServerConfigurationManager configurationManager, IProviderManager providerManager, ILibraryManager libraryManager)
: base(jsonSerializer, httpClient, logManager, configurationManager)
{
_providerManager = providerManager;
LibraryManager = libraryManager;
LocalMetaFileName = LastfmHelper.LocalArtistMetaFileName;
}
开发者ID:snap608,项目名称:MediaBrowser,代码行数:16,代码来源:LastfmArtistProvider.cs
示例7: FanArtAlbumProvider
/// <summary>
/// Initializes a new instance of the <see cref="FanArtAlbumProvider"/> class.
/// </summary>
/// <param name="httpClient">The HTTP client.</param>
/// <param name="logManager">The log manager.</param>
/// <param name="configurationManager">The configuration manager.</param>
/// <param name="providerManager">The provider manager.</param>
public FanArtAlbumProvider(IHttpClient httpClient, ILogManager logManager, IServerConfigurationManager configurationManager, IProviderManager providerManager, IFileSystem fileSystem)
: base(logManager, configurationManager)
{
_providerManager = providerManager;
_fileSystem = fileSystem;
HttpClient = httpClient;
}
开发者ID:RomanDengin,项目名称:MediaBrowser,代码行数:14,代码来源:FanArtAlbumProvider.cs
示例8: SelectProviderPage
public SelectProviderPage()
{
InitializeComponent();
DataContext = this;
readonlyChildren = new ReadOnlyObservableCollection<IWizardPage>(children);
// Register to self so that we can handler user interactions.
PropertyChanged += PropertyChangedHandler;
providerManager = ServiceLocator.Instance.Get<IProviderManager>();
if (providerManager != null)
{
foreach (var guid in providerManager)
{
providers.Add(providerManager.GetInformation(guid));
// If any additional page, we shall cache them with the
// same index, so make sure the collection matches providers.
additionalPages.Add(null);
}
}
LoggerName = "Untitled";
}
开发者ID:Irmanster,项目名称:mngSentinel,代码行数:25,代码来源:SelectProviderPage.xaml.cs
示例9: ChannelImageProvider
public ChannelImageProvider(ILogManager logManager, IServerConfigurationManager configurationManager, ILiveTvManager liveTvManager, IProviderManager providerManager, IFileSystem fileSystem)
: base(logManager, configurationManager)
{
_liveTvManager = liveTvManager;
_providerManager = providerManager;
_fileSystem = fileSystem;
}
开发者ID:RomanDengin,项目名称:MediaBrowser,代码行数:7,代码来源:ChannelImageProvider.cs
示例10: ShippingService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="shippingMethodRepository">Shipping method repository</param>
/// <param name="logger">Logger</param>
/// <param name="productAttributeParser">Product attribute parser</param>
/// <param name="productService">Product service</param>
/// <param name="checkoutAttributeParser">Checkout attribute parser</param>
/// <param name="genericAttributeService">Generic attribute service</param>
/// <param name="localizationService">Localization service</param>
/// <param name="shippingSettings">Shipping settings</param>
/// <param name="pluginFinder">Plugin finder</param>
/// <param name="eventPublisher">Event published</param>
/// <param name="shoppingCartSettings">Shopping cart settings</param>
/// <param name="settingService">Setting service</param>
public ShippingService(ICacheManager cacheManager,
IRepository<ShippingMethod> shippingMethodRepository,
ILogger logger,
IProductAttributeParser productAttributeParser,
IProductService productService,
ICheckoutAttributeParser checkoutAttributeParser,
IGenericAttributeService genericAttributeService,
ILocalizationService localizationService,
ShippingSettings shippingSettings,
IPluginFinder pluginFinder,
IEventPublisher eventPublisher,
ShoppingCartSettings shoppingCartSettings,
ISettingService settingService,
IProviderManager providerManager)
{
this._cacheManager = cacheManager;
this._shippingMethodRepository = shippingMethodRepository;
this._logger = logger;
this._productAttributeParser = productAttributeParser;
this._productService = productService;
this._checkoutAttributeParser = checkoutAttributeParser;
this._genericAttributeService = genericAttributeService;
this._localizationService = localizationService;
this._shippingSettings = shippingSettings;
this._pluginFinder = pluginFinder;
this._eventPublisher = eventPublisher;
this._shoppingCartSettings = shoppingCartSettings;
this._settingService = settingService;
this._providerManager = providerManager;
}
开发者ID:mandocaesar,项目名称:Mesinku,代码行数:46,代码来源:ShippingService.cs
示例11: Channel
public Channel(IHttpClient httpClient, ILogManager logManager, IProviderManager providerManager, INotificationManager notificationManager)
{
_httpClient = httpClient;
_logger = logManager.GetLogger(GetType().Name);
_providerManager = providerManager;
_notificationManager = notificationManager;
}
开发者ID:curtisghanson,项目名称:Emby.Channels,代码行数:7,代码来源:Channel.cs
示例12: ServiceOfferingController
public ServiceOfferingController(IServiceOfferingManager logicManager, IServiceTypeManager serviceTypeManager, IProviderManager providerManager, IProgramManager programManager, IFileProcessor fileProcessor)
{
if (logicManager == null)
{
throw new ArgumentNullException("logicManager");
}
if (serviceTypeManager == null)
{
throw new ArgumentNullException("serviceTypeManager");
}
if (providerManager == null)
{
throw new ArgumentNullException("providerManager");
}
if (programManager == null)
{
throw new ArgumentNullException("programManager");
}
if (fileProcessor == null)
{
throw new ArgumentNullException("fileProcessor");
}
LogicManager = logicManager;
ServiceTypeManager = serviceTypeManager;
ProviderManager = providerManager;
ProgramManager = programManager;
FileProcessor = fileProcessor;
}
开发者ID:modulexcite,项目名称:StudentSuccessDashboard,代码行数:28,代码来源:ServiceOfferingController.cs
示例13: MovieDbImagesProvider
/// <summary>
/// Initializes a new instance of the <see cref="MovieDbImagesProvider"/> class.
/// </summary>
/// <param name="logManager">The log manager.</param>
/// <param name="configurationManager">The configuration manager.</param>
/// <param name="providerManager">The provider manager.</param>
/// <param name="jsonSerializer">The json serializer.</param>
/// <param name="httpClient">The HTTP client.</param>
public MovieDbImagesProvider(ILogManager logManager, IServerConfigurationManager configurationManager, IProviderManager providerManager, IJsonSerializer jsonSerializer, IHttpClient httpClient)
: base(logManager, configurationManager)
{
_providerManager = providerManager;
_jsonSerializer = jsonSerializer;
_httpClient = httpClient;
}
开发者ID:0sm0,项目名称:MediaBrowser,代码行数:15,代码来源:MovieDbImagesProvider.cs
示例14: FanArtAlbumProvider
/// <summary>
/// Initializes a new instance of the <see cref="FanArtAlbumProvider"/> class.
/// </summary>
/// <param name="httpClient">The HTTP client.</param>
/// <param name="logManager">The log manager.</param>
/// <param name="configurationManager">The configuration manager.</param>
/// <param name="providerManager">The provider manager.</param>
public FanArtAlbumProvider(IHttpClient httpClient, ILogManager logManager, IServerConfigurationManager configurationManager, IProviderManager providerManager)
: base(logManager, configurationManager)
{
_providerManager = providerManager;
HttpClient = httpClient;
Current = this;
}
开发者ID:snap608,项目名称:MediaBrowser,代码行数:15,代码来源:FanArtAlbumProvider.cs
示例15: ProviderController
public ProviderController(IProviderManager logicManager)
{
if (logicManager == null)
{
throw new ArgumentNullException("logicManager");
}
LogicManager = logicManager;
}
开发者ID:modulexcite,项目名称:StudentSuccessDashboard,代码行数:8,代码来源:ProviderController.cs
示例16: GoogleBooksImageProvider
/// <summary>
///
/// </summary>
/// <param name="logManager"></param>
/// <param name="configurationManager"></param>
/// <param name="httpClient"></param>
/// <param name="jsonSerializer"></param>
/// <param name="providerManager"></param>
public GoogleBooksImageProvider(ILogManager logManager, IServerConfigurationManager configurationManager, IHttpClient httpClient, IJsonSerializer jsonSerializer, IProviderManager providerManager)
: base(logManager, configurationManager)
{
_httpClient = httpClient;
_jsonSerializer = jsonSerializer;
_logger = logManager.GetLogger("MB Bookshelf");
_providerManager = providerManager;
}
开发者ID:Inspirony,项目名称:Emby.Plugins,代码行数:16,代码来源:GoogleBooksImageProvider.cs
示例17: CollectionManager
public CollectionManager(ILibraryManager libraryManager, IFileSystem fileSystem, ILibraryMonitor iLibraryMonitor, ILogger logger, IProviderManager providerManager)
{
_libraryManager = libraryManager;
_fileSystem = fileSystem;
_iLibraryMonitor = iLibraryMonitor;
_logger = logger;
_providerManager = providerManager;
}
开发者ID:ratanparai,项目名称:Emby,代码行数:8,代码来源:CollectionManager.cs
示例18: TvdbEpisodeProvider
/// <summary>
/// Initializes a new instance of the <see cref="TvdbEpisodeProvider" /> class.
/// </summary>
/// <param name="httpClient">The HTTP client.</param>
/// <param name="logManager">The log manager.</param>
/// <param name="configurationManager">The configuration manager.</param>
/// <param name="providerManager">The provider manager.</param>
public TvdbEpisodeProvider(IHttpClient httpClient, ILogManager logManager, IServerConfigurationManager configurationManager, IProviderManager providerManager, IFileSystem fileSystem)
: base(logManager, configurationManager)
{
HttpClient = httpClient;
_providerManager = providerManager;
_fileSystem = fileSystem;
Current = this;
}
开发者ID:kreeturez,项目名称:MediaBrowser,代码行数:15,代码来源:TvdbEpisodeProvider.cs
示例19: ProgramImageProvider
public ProgramImageProvider(ILogManager logManager, IServerConfigurationManager configurationManager, ILiveTvManager liveTvManager, IProviderManager providerManager, IFileSystem fileSystem, IHttpClient httpClient)
: base(logManager, configurationManager)
{
_liveTvManager = liveTvManager;
_providerManager = providerManager;
_fileSystem = fileSystem;
_httpClient = httpClient;
}
开发者ID:jscorrea,项目名称:MediaBrowser,代码行数:8,代码来源:ProgramImageProvider.cs
示例20: MovieDbProvider
/// <summary>
/// Initializes a new instance of the <see cref="MovieDbProvider" /> class.
/// </summary>
/// <param name="logManager">The log manager.</param>
/// <param name="configurationManager">The configuration manager.</param>
/// <param name="jsonSerializer">The json serializer.</param>
/// <param name="httpClient">The HTTP client.</param>
/// <param name="providerManager">The provider manager.</param>
public MovieDbProvider(ILogManager logManager, IServerConfigurationManager configurationManager, IJsonSerializer jsonSerializer, IHttpClient httpClient, IProviderManager providerManager)
: base(logManager, configurationManager)
{
JsonSerializer = jsonSerializer;
HttpClient = httpClient;
ProviderManager = providerManager;
Current = this;
}
开发者ID:rrb008,项目名称:MediaBrowser,代码行数:16,代码来源:MovieDbProvider.cs
注:本文中的IProviderManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论