本文整理汇总了C#中Nop.Core.Domain.Shipping.ShippingSettings类的典型用法代码示例。如果您正苦于以下问题:C# ShippingSettings类的具体用法?C# ShippingSettings怎么用?C# ShippingSettings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ShippingSettings类属于Nop.Core.Domain.Shipping命名空间,在下文中一共展示了ShippingSettings类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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,
IPaymentService paymentService,
ICheckoutAttributeParser checkoutAttributeParser,
IDiscountService discountService,
IGiftCardService giftCardService,
IGenericAttributeService genericAttributeService,
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._paymentService = paymentService;
this._checkoutAttributeParser = checkoutAttributeParser;
this._discountService = discountService;
this._giftCardService = giftCardService;
this._genericAttributeService = genericAttributeService;
this._taxSettings = taxSettings;
this._rewardPointsSettings = rewardPointsSettings;
this._shippingSettings = shippingSettings;
this._shoppingCartSettings = shoppingCartSettings;
this._catalogSettings = catalogSettings;
}
示例2: PluginController
public PluginController(IPluginFinder pluginFinder,
IOfficialFeedManager officialFeedManager,
ILocalizationService localizationService,
IWebHelper webHelper,
IPermissionService permissionService,
ILanguageService languageService,
ISettingService settingService,
IStoreService storeService,
PaymentSettings paymentSettings,
ShippingSettings shippingSettings,
TaxSettings taxSettings,
ExternalAuthenticationSettings externalAuthenticationSettings,
WidgetSettings widgetSettings)
{
this._pluginFinder = pluginFinder;
this._officialFeedManager = officialFeedManager;
this._localizationService = localizationService;
this._webHelper = webHelper;
this._permissionService = permissionService;
this._languageService = languageService;
this._settingService = settingService;
this._storeService = storeService;
this._paymentSettings = paymentSettings;
this._shippingSettings = shippingSettings;
this._taxSettings = taxSettings;
this._externalAuthenticationSettings = externalAuthenticationSettings;
this._widgetSettings = widgetSettings;
}
示例3: 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,
CatalogSettings catalogSettings, OrderSettings orderSettings,
TaxSettings taxSettings, PdfSettings pdfSettings,
ShippingSettings shippingSettings, AddressSettings addressSettings)
{
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._catalogSettings = catalogSettings;
this._orderSettings = orderSettings;
this._taxSettings = taxSettings;
this._pdfSettings = pdfSettings;
this._shippingSettings = shippingSettings;
this._addressSettings = addressSettings;
}
示例4: ShippingController
public ShippingController(IShippingService shippingService,
ShippingSettings shippingSettings,
ISettingService settingService,
IAddressService addressService,
ICountryService countryService,
IStateProvinceService stateProvinceService,
ILocalizationService localizationService,
IPermissionService permissionService,
ILocalizedEntityService localizedEntityService,
ILanguageService languageService,
IPluginFinder pluginFinder,
IWebHelper webHelper)
{
this._shippingService = shippingService;
this._shippingSettings = shippingSettings;
this._settingService = settingService;
this._addressService = addressService;
this._countryService = countryService;
this._stateProvinceService = stateProvinceService;
this._localizationService = localizationService;
this._permissionService = permissionService;
this._localizedEntityService = localizedEntityService;
this._languageService = languageService;
this._pluginFinder = pluginFinder;
this._webHelper = webHelper;
}
示例5: ShippingController
public ShippingController(IShippingService shippingService, ShippingSettings shippingSettings,
ISettingService settingService, ICountryService countryService,
ILocalizationService localizationService, IPermissionService permissionService,
ILocalizedEntityService localizedEntityService, ILanguageService languageService)
{
this._shippingService = shippingService;
this._shippingSettings = shippingSettings;
this._settingService = settingService;
this._countryService = countryService;
this._localizationService = localizationService;
this._permissionService = permissionService;
this._localizedEntityService = localizedEntityService;
this._languageService = languageService;
}
示例6: IsShippingRateComputationMethodActive
public static bool IsShippingRateComputationMethodActive(this IShippingRateComputationMethod srcm,
ShippingSettings shippingSettings)
{
if (srcm == null)
throw new ArgumentNullException("srcm");
if (shippingSettings == null)
throw new ArgumentNullException("shippingSettings");
if (shippingSettings.ActiveShippingRateComputationMethodSystemNames == null)
return false;
foreach (string activeMethodSystemName in shippingSettings.ActiveShippingRateComputationMethodSystemNames)
if (srcm.PluginDescriptor.SystemName.Equals(activeMethodSystemName, StringComparison.InvariantCultureIgnoreCase))
return true;
return false;
}
示例7: CorreiosComputationMethod
public CorreiosComputationMethod(IMeasureService measureService,
IShippingService shippingService, ISettingService settingService,
CorreiosSettings correiosSettings, IOrderTotalCalculationService orderTotalCalculationService,
ICurrencyService currencyService, CurrencySettings currencySettings, ShippingSettings shippingSettings, IAddressService addressService, ILogger logger)
{
this._measureService = measureService;
this._shippingService = shippingService;
this._settingService = settingService;
this._correiosSettings = correiosSettings;
this._orderTotalCalculationService = orderTotalCalculationService;
this._currencyService = currencyService;
this._currencySettings = currencySettings;
this._shippingSettings = shippingSettings;
this._addressService = addressService;
this._logger = logger;
}
示例8: SetUp
public new void SetUp()
{
_shippingSettings = new ShippingSettings();
_shippingSettings.ActiveShippingRateComputationMethodSystemNames = new List<string>();
_shippingSettings.ActiveShippingRateComputationMethodSystemNames.Add("FixedRateTestShippingRateComputationMethod");
_shippingMethodRepository = MockRepository.GenerateMock<IRepository<ShippingMethod>>();
_deliveryDateRepository = MockRepository.GenerateMock<IRepository<DeliveryDate>>();
_warehouseRepository = MockRepository.GenerateMock<IRepository<Warehouse>>();
_logger = new NullLogger();
_productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();
_checkoutAttributeParser = MockRepository.GenerateMock<ICheckoutAttributeParser>();
var cacheManager = new NopNullCache();
var pluginFinder = new PluginFinder();
_productService = MockRepository.GenerateMock<IProductService>();
_eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
_eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));
_localizationService = MockRepository.GenerateMock<ILocalizationService>();
_addressService = MockRepository.GenerateMock<IAddressService>();
_genericAttributeService = MockRepository.GenerateMock<IGenericAttributeService>();
_store = new Store { Id = 1 };
_storeContext = MockRepository.GenerateMock<IStoreContext>();
_storeContext.Expect(x => x.CurrentStore).Return(_store);
_shoppingCartSettings = new ShoppingCartSettings();
_shippingService = new ShippingService(_shippingMethodRepository,
_deliveryDateRepository,
_warehouseRepository,
_logger,
_productService,
_productAttributeParser,
_checkoutAttributeParser,
_genericAttributeService,
_localizationService,
_addressService,
_shippingSettings,
pluginFinder,
_storeContext,
_eventPublisher,
_shoppingCartSettings,
cacheManager);
}
示例9: IsPickupPointProviderActive
public static bool IsPickupPointProviderActive(this IPickupPointProvider pickupPointProvider, ShippingSettings shippingSettings)
{
if (pickupPointProvider == null)
throw new ArgumentNullException("pickupPointProvider");
if (shippingSettings == null)
throw new ArgumentNullException("shippingSettings");
if (shippingSettings.ActivePickupPointProviderSystemNames == null)
return false;
foreach (string activeProviderSystemName in shippingSettings.ActivePickupPointProviderSystemNames)
if (pickupPointProvider.PluginDescriptor.SystemName.Equals(activeProviderSystemName, StringComparison.InvariantCultureIgnoreCase))
return true;
return false;
}
示例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="checkoutAttributeParser">Checkout attribute parser</param>
/// <param name="shippingSettings">Shipping settings</param>
/// <param name="pluginFinder">Plugin finder</param>
/// <param name="eventPublisher"></param>
public ShippingService(ICacheManager cacheManager,
IRepository<ShippingMethod> shippingMethodRepository,
ILogger logger,
IProductAttributeParser productAttributeParser,
ICheckoutAttributeParser checkoutAttributeParser,
ShippingSettings shippingSettings,
IPluginFinder pluginFinder,
IEventPublisher eventPublisher)
{
_cacheManager = cacheManager;
_shippingMethodRepository = shippingMethodRepository;
_logger = logger;
_productAttributeParser = productAttributeParser;
_checkoutAttributeParser = checkoutAttributeParser;
_shippingSettings = shippingSettings;
_pluginFinder = pluginFinder;
_eventPublisher = eventPublisher;
}
示例11: GetShipmentTracker
/// <summary>
/// Get the tracker of the shipment
/// </summary>
/// <param name="shipment">Shipment</param>
/// <param name="shippingService">Shipping service</param>
/// <param name="shippingSettings">Shipping settings</param>
/// <returns>Shipment tracker</returns>
public static IShipmentTracker GetShipmentTracker(this Shipment shipment, IShippingService shippingService, ShippingSettings shippingSettings)
{
if (!shipment.Order.PickUpInStore)
{
var shippingRateComputationMethod = shippingService.LoadShippingRateComputationMethodBySystemName(shipment.Order.ShippingRateComputationMethodSystemName);
if (shippingRateComputationMethod != null && shippingRateComputationMethod.PluginDescriptor.Installed &&
shippingRateComputationMethod.IsShippingRateComputationMethodActive(shippingSettings))
return shippingRateComputationMethod.ShipmentTracker;
}
else
{
var pickupPointProvider = shippingService.LoadPickupPointProviderBySystemName(shipment.Order.ShippingRateComputationMethodSystemName);
if (pickupPointProvider != null && pickupPointProvider.PluginDescriptor.Installed &&
pickupPointProvider.IsPickupPointProviderActive(shippingSettings))
return pickupPointProvider.ShipmentTracker;
}
return null;
}
示例12: 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)
{
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;
}
示例13: 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="checkoutAttributeParser">Checkout attribute parser</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>
public ShippingService(ICacheManager cacheManager,
IRepository<ShippingMethod> shippingMethodRepository,
ILogger logger,
IProductAttributeParser productAttributeParser,
ICheckoutAttributeParser checkoutAttributeParser,
ILocalizationService localizationService,
ShippingSettings shippingSettings,
IPluginFinder pluginFinder,
IEventPublisher eventPublisher,
ShoppingCartSettings shoppingCartSettings)
{
this._cacheManager = cacheManager;
this._shippingMethodRepository = shippingMethodRepository;
this._logger = logger;
this._productAttributeParser = productAttributeParser;
this._checkoutAttributeParser = checkoutAttributeParser;
this._localizationService = localizationService;
this._shippingSettings = shippingSettings;
this._pluginFinder = pluginFinder;
this._eventPublisher = eventPublisher;
this._shoppingCartSettings = shoppingCartSettings;
}
示例14: OrderController
public OrderController(IOrderService orderService,
IShipmentService shipmentService, IWorkContext workContext,
ICurrencyService currencyService, IPriceFormatter priceFormatter,
IOrderProcessingService orderProcessingService,
IDateTimeHelper dateTimeHelper, IMeasureService measureService,
IPaymentService paymentService, ILocalizationService localizationService,
IPdfService pdfService, ICustomerService customerService,
IWorkflowMessageService workflowMessageService, IShippingService shippingService,
ICountryService countryService, LocalizationSettings localizationSettings,
MeasureSettings measureSettings, CatalogSettings catalogSettings,
OrderSettings orderSettings, TaxSettings taxSettings, PdfSettings pdfSettings,
ShippingSettings shippingSettings)
{
this._orderService = orderService;
this._shipmentService = shipmentService;
this._workContext = workContext;
this._currencyService = currencyService;
this._priceFormatter = priceFormatter;
this._orderProcessingService = orderProcessingService;
this._dateTimeHelper = dateTimeHelper;
this._measureService = measureService;
this._paymentService = paymentService;
this._localizationService = localizationService;
this._pdfService = pdfService;
this._customerService = customerService;
this._workflowMessageService = workflowMessageService;
this._shippingService = shippingService;
this._countryService = countryService;
this._localizationSettings = localizationSettings;
this._measureSettings = measureSettings;
this._catalogSettings = catalogSettings;
this._orderSettings = orderSettings;
this._taxSettings = taxSettings;
this._pdfSettings = pdfSettings;
this._shippingSettings = shippingSettings;
}
示例15: OrderProcessingService
/// <summary>
/// Ctor
/// </summary>
/// <param name="orderService">Order service</param>
/// <param name="webHelper">Web helper</param>
/// <param name="localizationService">Localization service</param>
/// <param name="languageService">Language service</param>
/// <param name="productService">Product service</param>
/// <param name="paymentService">Payment service</param>
/// <param name="logger">Logger</param>
/// <param name="orderTotalCalculationService">Order total calculationservice</param>
/// <param name="priceCalculationService">Price calculation service</param>
/// <param name="priceFormatter">Price formatter</param>
/// <param name="productAttributeParser">Product attribute parser</param>
/// <param name="productAttributeFormatter">Product attribute formatter</param>
/// <param name="giftCardService">Gift card service</param>
/// <param name="shoppingCartService">Shopping cart service</param>
/// <param name="checkoutAttributeFormatter">Checkout attribute service</param>
/// <param name="shippingService">Shipping service</param>
/// <param name="shipmentService">Shipment service</param>
/// <param name="taxService">Tax service</param>
/// <param name="customerService">Customer service</param>
/// <param name="discountService">Discount service</param>
/// <param name="encryptionService">Encryption service</param>
/// <param name="workContext">Work context</param>
/// <param name="workflowMessageService">Workflow message service</param>
/// <param name="vendorService">Vendor service</param>
/// <param name="customerActivityService">Customer activity service</param>
/// <param name="currencyService">Currency service</param>
/// <param name="affiliateService">Affiliate service</param>
/// <param name="eventPublisher">Event published</param>
/// <param name="pdfService">PDF service</param>
/// <param name="paymentSettings">Payment settings</param>
/// <param name="shippingSettings">Shipping settings</param>
/// <param name="rewardPointsSettings">Reward points settings</param>
/// <param name="orderSettings">Order settings</param>
/// <param name="taxSettings">Tax settings</param>
/// <param name="localizationSettings">Localization settings</param>
/// <param name="currencySettings">Currency settings</param>
public OrderProcessingService(IOrderService orderService,
IWebHelper webHelper,
ILocalizationService localizationService,
ILanguageService languageService,
IProductService productService,
IPaymentService paymentService,
ILogger logger,
IOrderTotalCalculationService orderTotalCalculationService,
IPriceCalculationService priceCalculationService,
IPriceFormatter priceFormatter,
IProductAttributeParser productAttributeParser,
IProductAttributeFormatter productAttributeFormatter,
IGiftCardService giftCardService,
IShoppingCartService shoppingCartService,
ICheckoutAttributeFormatter checkoutAttributeFormatter,
IShippingService shippingService,
IShipmentService shipmentService,
ITaxService taxService,
ICustomerService customerService,
IDiscountService discountService,
IEncryptionService encryptionService,
IWorkContext workContext,
IWorkflowMessageService workflowMessageService,
IVendorService vendorService,
ICustomerActivityService customerActivityService,
ICurrencyService currencyService,
IAffiliateService affiliateService,
IEventPublisher eventPublisher,
IPdfService pdfService,
ShippingSettings shippingSettings,
PaymentSettings paymentSettings,
RewardPointsSettings rewardPointsSettings,
OrderSettings orderSettings,
TaxSettings taxSettings,
LocalizationSettings localizationSettings,
CurrencySettings currencySettings)
{
this._orderService = orderService;
this._webHelper = webHelper;
this._localizationService = localizationService;
this._languageService = languageService;
this._productService = productService;
this._paymentService = paymentService;
this._logger = logger;
this._orderTotalCalculationService = orderTotalCalculationService;
this._priceCalculationService = priceCalculationService;
this._priceFormatter = priceFormatter;
this._productAttributeParser = productAttributeParser;
this._productAttributeFormatter = productAttributeFormatter;
this._giftCardService = giftCardService;
this._shoppingCartService = shoppingCartService;
this._checkoutAttributeFormatter = checkoutAttributeFormatter;
this._workContext = workContext;
this._workflowMessageService = workflowMessageService;
this._vendorService = vendorService;
this._shippingService = shippingService;
this._shipmentService = shipmentService;
this._taxService = taxService;
this._customerService = customerService;
this._discountService = discountService;
this._encryptionService = encryptionService;
//.........这里部分代码省略.........