本文整理汇总了C#中IDownloadService类的典型用法代码示例。如果您正苦于以下问题:C# IDownloadService类的具体用法?C# IDownloadService怎么用?C# IDownloadService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IDownloadService类属于命名空间,在下文中一共展示了IDownloadService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MessageTokenProvider
public MessageTokenProvider(ILanguageService languageService,
ILocalizationService localizationService, IDateTimeHelper dateTimeHelper,
IEmailAccountService emailAccountService,
IPriceFormatter priceFormatter, ICurrencyService currencyService,IWebHelper webHelper,
IWorkContext workContext, IDownloadService downloadService,
IOrderService orderService, IPaymentService paymentService,
IProductAttributeParser productAttributeParser,
MessageTemplatesSettings templatesSettings,
EmailAccountSettings emailAccountSettings, CatalogSettings catalogSettings,
TaxSettings taxSettings, IEventPublisher eventPublisher)
{
this._languageService = languageService;
this._localizationService = localizationService;
this._dateTimeHelper = dateTimeHelper;
this._emailAccountService = emailAccountService;
this._priceFormatter = priceFormatter;
this._currencyService = currencyService;
this._webHelper = webHelper;
this._workContext = workContext;
this._downloadService = downloadService;
this._orderService = orderService;
this._paymentService = paymentService;
this._productAttributeParser = productAttributeParser;
this._templatesSettings = templatesSettings;
this._emailAccountSettings = emailAccountSettings;
this._catalogSettings = catalogSettings;
this._taxSettings = taxSettings;
this._eventPublisher = eventPublisher;
}
示例2: SetUp
public new void SetUp()
{
_store = new Store() { Id = 1 };
_storeContext = MockRepository.GenerateMock<IStoreContext>();
_storeContext.Expect(x => x.CurrentStore).Return(_store);
_discountService = MockRepository.GenerateMock<IDiscountService>();
_categoryService = MockRepository.GenerateMock<ICategoryService>();
_productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();
_productService = MockRepository.GenerateMock<IProductService>();
_productAttributeService = MockRepository.GenerateMock<IProductAttributeService>();
_downloadService = MockRepository.GenerateMock<IDownloadService>();
_commonServices = MockRepository.GenerateMock<ICommonServices>();
_commonServices.Expect(x => x.StoreContext).Return(_storeContext);
_httpRequestBase = MockRepository.GenerateMock<HttpRequestBase>();
_taxService = MockRepository.GenerateMock<ITaxService>();
_shoppingCartSettings = new ShoppingCartSettings();
_catalogSettings = new CatalogSettings();
_priceCalcService = new PriceCalculationService(_discountService, _categoryService, _productAttributeParser, _productService, _shoppingCartSettings, _catalogSettings,
_productAttributeService, _downloadService, _commonServices, _httpRequestBase, _taxService);
}
示例3: MessageTokenProvider
public MessageTokenProvider(ILanguageService languageService,
ILocalizationService localizationService, IDateTimeHelper dateTimeHelper,
IEmailAccountService emailAccountService,
IPriceFormatter priceFormatter, ICurrencyService currencyService,IWebHelper webHelper,
IWorkContext workContext, IDownloadService downloadService,
IOrderService orderService,
StoreInformationSettings storeSettings, MessageTemplatesSettings templatesSettings,
EmailAccountSettings emailAccountSettings, CatalogSettings catalogSettings,
TaxSettings taxSettings)
{
this._languageService = languageService;
this._localizationService = localizationService;
this._dateTimeHelper = dateTimeHelper;
this._emailAccountService = emailAccountService;
this._priceFormatter = priceFormatter;
this._currencyService = currencyService;
this._webHelper = webHelper;
this._workContext = workContext;
this._downloadService = downloadService;
this._orderService = orderService;
this._storeSettings = storeSettings;
this._templatesSettings = templatesSettings;
this._emailAccountSettings = emailAccountSettings;
this._catalogSettings = catalogSettings;
this._taxSettings = taxSettings;
}
示例4: CopyProductService
public CopyProductService(IProductService productService,
IProductAttributeService productAttributeService,
ILanguageService languageService,
ILocalizedEntityService localizedEntityService,
IPictureService pictureService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
ISpecificationAttributeService specificationAttributeService,
IDownloadService downloadService,
IProductAttributeParser productAttributeParser,
IUrlRecordService urlRecordService,
IStoreMappingService storeMappingService)
{
this._productService = productService;
this._productAttributeService = productAttributeService;
this._languageService = languageService;
this._localizedEntityService = localizedEntityService;
this._pictureService = pictureService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._specificationAttributeService = specificationAttributeService;
this._downloadService = downloadService;
this._productAttributeParser = productAttributeParser;
this._urlRecordService = urlRecordService;
this._storeMappingService = storeMappingService;
}
示例5: PriceCalculationService
public PriceCalculationService(
IDiscountService discountService,
ICategoryService categoryService,
IProductAttributeParser productAttributeParser,
IProductService productService,
ShoppingCartSettings shoppingCartSettings,
CatalogSettings catalogSettings,
IProductAttributeService productAttributeService,
IDownloadService downloadService,
ICommonServices services,
HttpRequestBase httpRequestBase,
ITaxService taxService)
{
this._discountService = discountService;
this._categoryService = categoryService;
this._productAttributeParser = productAttributeParser;
this._productService = productService;
this._shoppingCartSettings = shoppingCartSettings;
this._catalogSettings = catalogSettings;
this._productAttributeService = productAttributeService;
this._downloadService = downloadService;
this._services = services;
this._httpRequestBase = httpRequestBase;
this._taxService = taxService;
}
示例6: WorkflowMessageService
public WorkflowMessageService(
IMessageTemplateService messageTemplateService,
IQueuedEmailService queuedEmailService,
ILanguageService languageService,
ITokenizer tokenizer,
IEmailAccountService emailAccountService,
IMessageTokenProvider messageTokenProvider,
IStoreService storeService,
IStoreContext storeContext,
EmailAccountSettings emailAccountSettings,
IEventPublisher eventPublisher,
IWorkContext workContext,
HttpRequestBase httpRequest,
IDownloadService downloadServioce)
{
this._messageTemplateService = messageTemplateService;
this._queuedEmailService = queuedEmailService;
this._languageService = languageService;
this._tokenizer = tokenizer;
this._emailAccountService = emailAccountService;
this._messageTokenProvider = messageTokenProvider;
this._storeService = storeService;
this._storeContext = storeContext;
this._emailAccountSettings = emailAccountSettings;
this._eventPublisher = eventPublisher;
this._workContext = workContext;
this._httpRequest = httpRequest;
this._downloadServioce = downloadServioce;
}
示例7: CheckoutAttributeFormatter
public CheckoutAttributeFormatter(IWorkContext workContext,
ICheckoutAttributeService checkoutAttributeService,
ICheckoutAttributeParser checkoutAttributeParser,
ICurrencyService currencyService,
ITaxService taxService,
IPriceFormatter priceFormatter,
IDownloadService downloadService,
IWebHelper webHelper,
PromoSettings promoSettings,
IPromoUtilities qixolPromoUtilities,
IAttributeValueService attributeValueService)
: base(workContext, checkoutAttributeService, checkoutAttributeParser,
currencyService, taxService, priceFormatter,
downloadService, webHelper)
{
this._workContext = workContext;
this._checkoutAttributeService = checkoutAttributeService;
this._checkoutAttributeParser = checkoutAttributeParser;
this._currencyService = currencyService;
this._taxService = taxService;
this._priceFormatter = priceFormatter;
this._downloadService = downloadService;
this._webHelper = webHelper;
this._promoSettings = promoSettings;
this._qixolPromoUtilities = qixolPromoUtilities;
this._attributeValueService = attributeValueService;
}
示例8: DownloadController
public DownloadController(IDownloadService downloadService,
IPermissionService permissionService,
IAuthenticationService authenticationService)
{
this._downloadService = downloadService;
this._permissionService = permissionService;
this._authenticationService = authenticationService;
}
示例9: LibraryMatchingService
public LibraryMatchingService(ILibraryService libraryService, IMatchEngineService matchEngineService,
IInsightsService insightsService, IDownloadService downloadService)
{
_libraryService = libraryService;
_matchEngineService = matchEngineService;
_insightsService = insightsService;
_downloadService = downloadService;
}
示例10: DownloadController
public DownloadController(IDownloadService downloadService, IProductService productService,
IOrderService orderService, IWorkContext workContext, CustomerSettings customerSettings)
{
this._downloadService = downloadService;
this._productService = productService;
this._orderService = orderService;
this._workContext = workContext;
this._customerSettings = customerSettings;
}
示例11: OrderController
public OrderController(IOrderService orderService,
IShipmentService shipmentService,
IWorkContext workContext,
ICurrencyService currencyService,
IPriceFormatter priceFormatter,
IOrderProcessingService orderProcessingService,
IDateTimeHelper dateTimeHelper,
IPaymentService paymentService,
ILocalizationService localizationService,
IPdfService pdfService,
IShippingService shippingService,
ICountryService countryService,
IProductAttributeParser productAttributeParser,
IWebHelper webHelper,
IDownloadService downloadService,
IAddressAttributeFormatter addressAttributeFormatter,
IStoreContext storeContext,
IOrderTotalCalculationService orderTotalCalculationService,
IRewardPointsService rewardPointsService,
IGiftCardService giftCardService,
CatalogSettings catalogSettings,
OrderSettings orderSettings,
TaxSettings taxSettings,
ShippingSettings shippingSettings,
AddressSettings addressSettings,
RewardPointsSettings rewardPointsSettings,
PdfSettings pdfSettings)
{
this._orderService = orderService;
this._shipmentService = shipmentService;
this._workContext = workContext;
this._currencyService = currencyService;
this._priceFormatter = priceFormatter;
this._orderProcessingService = orderProcessingService;
this._dateTimeHelper = dateTimeHelper;
this._paymentService = paymentService;
this._localizationService = localizationService;
this._pdfService = pdfService;
this._shippingService = shippingService;
this._countryService = countryService;
this._productAttributeParser = productAttributeParser;
this._webHelper = webHelper;
this._downloadService = downloadService;
this._addressAttributeFormatter = addressAttributeFormatter;
this._storeContext = storeContext;
this._rewardPointsService = rewardPointsService;
this._giftCardService = giftCardService;
this._orderTotalCalculationService = orderTotalCalculationService;
this._catalogSettings = catalogSettings;
this._orderSettings = orderSettings;
this._taxSettings = taxSettings;
this._shippingSettings = shippingSettings;
this._addressSettings = addressSettings;
this._rewardPointsSettings = rewardPointsSettings;
this._pdfSettings = pdfSettings;
}
示例12: ProcessDownloadDecisions
public ProcessDownloadDecisions(IDownloadService downloadService,
IPrioritizeDownloadDecision prioritizeDownloadDecision,
IPendingReleaseService pendingReleaseService,
Logger logger)
{
_downloadService = downloadService;
_prioritizeDownloadDecision = prioritizeDownloadDecision;
_pendingReleaseService = pendingReleaseService;
_logger = logger;
}
示例13: UnitContentResourceService
public UnitContentResourceService(IDownloadService downloadService, int unitId, IConstants constants)
{
this.downloadService = downloadService;
this.ModuleId = unitId;
this.constants = constants;
// Get all course content.
this.fullContentLink = new Uri(constants.ServicePrefix + string.Format(unitLink, this.ModuleId, this.constants.CultureCode, this.constants.SiteVersion, this.constants.PartnerCode));
// Download unit content.
this.Content = downloadService.DownloadFromPath(this.fullContentLink);
}
示例14: MessageTokenProvider
public MessageTokenProvider(ILanguageService languageService,
ILocalizationService localizationService,
IDateTimeHelper dateTimeHelper,
IPriceFormatter priceFormatter,
ICurrencyService currencyService,
IWorkContext workContext,
IDownloadService downloadService,
IOrderService orderService,
IPaymentService paymentService,
IStoreService storeService,
IStoreContext storeContext,
IProductAttributeParser productAttributeParser,
IAddressAttributeFormatter addressAttributeFormatter,
MessageTemplatesSettings templatesSettings,
CatalogSettings catalogSettings,
TaxSettings taxSettings,
CurrencySettings currencySettings,
ShippingSettings shippingSettings,
IEventPublisher eventPublisher,
PromoSettings promoSettings,
IPromoOrderService promoOrderService
)
: base(languageService, localizationService,
dateTimeHelper, priceFormatter, currencyService, workContext,
downloadService, orderService, paymentService, storeService,
storeContext, productAttributeParser,
addressAttributeFormatter, templatesSettings, catalogSettings,
taxSettings, currencySettings, shippingSettings, eventPublisher)
{
this._languageService = languageService;
this._localizationService = localizationService;
this._dateTimeHelper = dateTimeHelper;
this._priceFormatter = priceFormatter;
this._currencyService = currencyService;
this._workContext = workContext;
this._downloadService = downloadService;
this._orderService = orderService;
this._paymentService = paymentService;
this._productAttributeParser = productAttributeParser;
this._addressAttributeFormatter = addressAttributeFormatter;
this._storeService = storeService;
this._storeContext = storeContext;
this._templatesSettings = templatesSettings;
this._catalogSettings = catalogSettings;
this._taxSettings = taxSettings;
this._currencySettings = currencySettings;
this._shippingSettings = shippingSettings;
this._eventPublisher = eventPublisher;
this._promoSettings = promoSettings;
this._promoOrderService = promoOrderService;
}
示例15: LevelContentResourceService
public LevelContentResourceService(IDownloadService downloadService, int levelId, IConstants constants)
{
this.downloadService = downloadService;
this.ModuleId = levelId;
// Get all course content.
this.fullContentLink = new Uri(constants.ServicePrefix + string.Format(levelLink, this.ModuleId, constants.CultureCode, constants.SiteVersion, constants.PartnerCode));
// Download activity content.
this.Content = downloadService.DownloadFromPath(this.fullContentLink);
}