本文整理汇总了C#中ICountryService类的典型用法代码示例。如果您正苦于以下问题:C# ICountryService类的具体用法?C# ICountryService怎么用?C# ICountryService使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ICountryService类属于命名空间,在下文中一共展示了ICountryService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HomeTask
public HomeTask(ICountryService countryService, IPersonService personService, IMenuService menuService, IUserService userService)
{
this.countryService = countryService;
this.personService = personService;
this.menuService = menuService;
this.userService = userService;
}
示例2: InitializeConfigs
private void InitializeConfigs()
{
csw = Container.Resolve<ICountryService>();
lsw = Container.Resolve<ILocalService>();
ssw = Container.Resolve<ISubdivisionService>();
ConfigUser = new DefaultMapConfig();
ConfigUserFullInfo = new DefaultMapConfig();
ConfigUser.ConvertUsing((UserFullInfo usr) =>
new User
{
Id = usr.Id,
FirstName = usr.FirstName,
SecondName = usr.SecondName,
CountryId = usr.Country.Id,
LocationId = usr.Location.Id,
SubdivisionId = usr.Subdivision.Id
});
ConfigUserFullInfo.ConvertUsing((User usr) =>
new UserFullInfo
{
Id = usr.Id,
FirstName = usr.FirstName,
SecondName = usr.SecondName,
Country = csw.GetCountryById(usr.CountryId),
Subdivision = usr.SubdivisionId != null ? ssw.GetSubdivisionById((int)usr.SubdivisionId) : null,
Location = usr.LocationId != null ? lsw.GetLocationById((int)usr.LocationId) : null
});
}
示例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: CampaignController
public CampaignController(
ICampaignService campaignService,
ITShirtCostService tshirtService,
IProductService productService,
IPromotionService promotionService,
IRepository<CurrencyRecord> currencyRepository,
IWorkContextAccessor wca,
INotifier notifier,
IOrchardServices services,
ICookieCultureService cookieCultureService,
ICountryService countryService)
{
_currencyRepository = currencyRepository;
Services = services;
_tshirtService = tshirtService;
_productService = productService;
_campaignService = campaignService;
_promotionService = promotionService;
_wca = wca;
_notifier = notifier;
Logger = NullLogger.Instance;
_cookieCultureService = cookieCultureService;
//var culture = _wca.GetContext().CurrentCulture.Trim();
_cultureUsed = _wca.GetContext().CurrentCulture.Trim();
//cultureUsed = culture == "en-SG" ? "en-SG" : (culture == "id-ID" ? "id-ID" : "en-MY");
_countryService = countryService;
}
示例5: CountryController
public CountryController(ICountryService countryService, IStateProvinceService stateProvinceService,
ILocalizationService localizationService)
{
this._countryService = countryService;
this._stateProvinceService = stateProvinceService;
this._localizationService = localizationService;
}
示例6: DiscountRulesShippingCountryController
public DiscountRulesShippingCountryController(ILocalizationService localizationService,
IDiscountService discountService, ICountryService countryService)
{
this._localizationService = localizationService;
this._discountService = discountService;
this._countryService = countryService;
}
示例7: ShippingByWeightController
public ShippingByWeightController(IShippingService shippingService,
IStoreService storeService,
ICountryService countryService,
IStateProvinceService stateProvinceService,
ShippingByWeightSettings shippingByWeightSettings,
IShippingByWeightService shippingByWeightService,
ISettingService settingService,
ILocalizationService localizationService,
IPermissionService permissionService,
ICurrencyService currencyService,
CurrencySettings currencySettings,
IMeasureService measureService,
MeasureSettings measureSettings)
{
this._shippingService = shippingService;
this._storeService = storeService;
this._countryService = countryService;
this._stateProvinceService = stateProvinceService;
this._shippingByWeightSettings = shippingByWeightSettings;
this._shippingByWeightService = shippingByWeightService;
this._settingService = settingService;
this._localizationService = localizationService;
this._permissionService = permissionService;
this._currencyService = currencyService;
this._currencySettings = currencySettings;
this._measureService = measureService;
this._measureSettings = measureSettings;
}
示例8: TaxZoneService
public TaxZoneService(DataContext db, ITaxRateService taxRateService, ICountryService countryService, IRegionService regionService)
{
this.db = db;
this.taxRateService = taxRateService;
this.countryService = countryService;
this.regionService = regionService;
}
示例9: CollectibleExportService
public CollectibleExportService(IProductService productService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
IPictureService pictureService,
IUrlRecordService urlRecordService,
IStoreContext storeContext,
INewsLetterSubscriptionService newsLetterSubscriptionService,
ICountryService countryService, //not used
IStateProvinceService stateProvinceService,
IConsignorService consignorService,
IAuthenticationService authenticationService,
ILogger logger,
IRepository<AUCountryLotRecord> countrylotRepo,
IRepository<AUStateProvinceLotRecord> stateprovincelotRepo
)
{
this._productService = productService;
this._categoryService = categoryService;
this._manufacturerService = manufacturerService;
this._pictureService = pictureService;
this._urlRecordService = urlRecordService;
this._storeContext = storeContext;
this._newsLetterSubscriptionService = newsLetterSubscriptionService;
this._countryService = countryService;
this._stateProvinceService = stateProvinceService;
this._consignorService = consignorService;
this._authenticationService = authenticationService;
this._logger = logger; //NJM: AUConsignor
this._countrylotRepo = countrylotRepo;
this._stateprovincelotRepo = stateprovincelotRepo;
}
示例10: ShippingZoneService
public ShippingZoneService(DataContext db, ICountryService countryService, IRegionService regionService, IShippingMethodService shippingMethodService)
{
this.db = db;
this.countryService = countryService;
this.regionService = regionService;
this.shippingMethodService = shippingMethodService;
}
示例11: CountryController
public CountryController(
ICountryService countries,
IIdentityService identity)
{
_countries = countries;
_identity = identity;
}
示例12: TaxService
/// <summary>
/// Ctor
/// </summary>
/// <param name="addressService">Address service</param>
/// <param name="workContext">Work context</param>
/// <param name="taxSettings">Tax settings</param>
/// <param name="pluginFinder">Plugin finder</param>
/// <param name="geoLookupService">GEO lookup service</param>
/// <param name="countryService">Country service</param>
/// <param name="customerSettings">Customer settings</param>
/// <param name="addressSettings">Address settings</param>
public TaxService(IAddressService addressService,
IWorkContext workContext,
TaxSettings taxSettings,
IPluginFinder pluginFinder,
IGeoLookupService geoLookupService,
ICountryService countryService,
CustomerSettings customerSettings,
AddressSettings addressSettings,
PromoSettings promoSettings,
//IpromoService promoService,
IPromoUtilities promoUtilities,
ITaxServiceExtensions taxServiceExtensions)
: base(addressService, workContext, taxSettings,
pluginFinder, geoLookupService, countryService,
customerSettings, addressSettings)
{
this._addressService = addressService;
this._workContext = workContext;
this._taxSettings = taxSettings;
this._pluginFinder = pluginFinder;
this._geoLookupService = geoLookupService;
this._countryService = countryService;
this._customerSettings = customerSettings;
this._addressSettings = addressSettings;
this._promoSettings = promoSettings;
//this._promoService = promoService;
this._promoUtilities = promoUtilities;
this._taxServiceExtensions = taxServiceExtensions;
}
示例13: CountryController
public CountryController(
IAuditService<Country, CountryAudit> auditService,
ICountryService countryService)
{
this.AuditService = auditService;
this.CountryService = countryService;
}
示例14: GoogleCheckoutPaymentProcessor
public GoogleCheckoutPaymentProcessor(ISettingService settingService,
IWebHelper webHelper, ITaxService taxService,
IShippingService shippingService,
IOrderTotalCalculationService orderTotalCalculationService,
IProductAttributeFormatter productAttributeFormatter,
IPriceCalculationService priceCalculationService, IWorkContext workContext,
ICustomerService customerService, IGenericAttributeService genericAttributeService,
ICountryService countryService,
IStateProvinceService stateProvinceService, IOrderProcessingService orderProcessingService,
IOrderService orderService, ILogger logger, HttpContextBase httpContext)
{
this._settingService = settingService;
this._webHelper = webHelper;
this._taxService = taxService;
this._shippingService = shippingService;
this._orderTotalCalculationService = orderTotalCalculationService;
this._productAttributeFormatter = productAttributeFormatter;
this._priceCalculationService = priceCalculationService;
this._workContext = workContext;
this._customerService = customerService;
this._genericAttributeService = genericAttributeService;
this._countryService = countryService;
this._stateProvinceService = stateProvinceService;
this._orderProcessingService = orderProcessingService;
this._orderService = orderService;
this._logger = logger;
this._httpContext = httpContext;
}
示例15: SettingController
public SettingController(ISettingService settingService,
ICountryService countryService, IStateProvinceService stateProvinceService,
IAddressService addressService, ITaxCategoryService taxCategoryService,
ICurrencyService currencyService, IPictureService pictureService,
ILocalizationService localizationService, IDateTimeHelper dateTimeHelper,
IOrderService orderService, IEncryptionService encryptionService,
IThemeProvider themeProvider, ICustomerService customerService,
ICustomerActivityService customerActivityService, IPermissionService permissionService,
IWebHelper webHelper, IFulltextService fulltextService,
IMaintenanceService maintenanceService, IStoreService storeService,
IWorkContext workContext, IGenericAttributeService genericAttributeService)
{
this._settingService = settingService;
this._countryService = countryService;
this._stateProvinceService = stateProvinceService;
this._addressService = addressService;
this._taxCategoryService = taxCategoryService;
this._currencyService = currencyService;
this._pictureService = pictureService;
this._localizationService = localizationService;
this._dateTimeHelper = dateTimeHelper;
this._orderService = orderService;
this._encryptionService = encryptionService;
this._themeProvider = themeProvider;
this._customerService = customerService;
this._customerActivityService = customerActivityService;
this._permissionService = permissionService;
this._webHelper = webHelper;
this._fulltextService = fulltextService;
this._maintenanceService = maintenanceService;
this._storeService = storeService;
this._workContext = workContext;
this._genericAttributeService = genericAttributeService;
}