本文整理汇总了C#中IProviderManager类的典型用法代码示例。如果您正苦于以下问题:C# IProviderManager类的具体用法?C# IProviderManager怎么用?C# IProviderManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IProviderManager类属于命名空间,在下文中一共展示了IProviderManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
}
示例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;
}
示例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;
}
示例4: EntryPoint
public EntryPoint(IUserDataManager userDataManager, ILibraryManager libraryManager, ILogger logger, IProviderManager providerManager)
{
_userDataManager = userDataManager;
_libraryManager = libraryManager;
_logger = logger;
_providerManager = providerManager;
}
示例5: ItemImageProvider
public ItemImageProvider(ILogger logger, IProviderManager providerManager, IServerConfigurationManager config, IFileSystem fileSystem)
{
_logger = logger;
_providerManager = providerManager;
_config = config;
_fileSystem = fileSystem;
}
示例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;
}
示例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;
}
示例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";
}
示例9: ChannelImageProvider
public ChannelImageProvider(ILogManager logManager, IServerConfigurationManager configurationManager, ILiveTvManager liveTvManager, IProviderManager providerManager, IFileSystem fileSystem)
: base(logManager, configurationManager)
{
_liveTvManager = liveTvManager;
_providerManager = providerManager;
_fileSystem = fileSystem;
}
示例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;
}
示例11: Channel
public Channel(IHttpClient httpClient, ILogManager logManager, IProviderManager providerManager, INotificationManager notificationManager)
{
_httpClient = httpClient;
_logger = logManager.GetLogger(GetType().Name);
_providerManager = providerManager;
_notificationManager = notificationManager;
}
示例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;
}
示例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;
}
示例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;
}
示例15: ProviderController
public ProviderController(IProviderManager logicManager)
{
if (logicManager == null)
{
throw new ArgumentNullException("logicManager");
}
LogicManager = logicManager;
}