本文整理汇总了C#中ISettingService类的典型用法代码示例。如果您正苦于以下问题:C# ISettingService类的具体用法?C# ISettingService怎么用?C# ISettingService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISettingService类属于命名空间,在下文中一共展示了ISettingService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
public void Init(HttpApplication context)
{
cryptoService = DependencyResolver.Current.GetService<ICryptoServiceFactory>().Create();
settingService = DependencyResolver.Current.GetService<ISettingService>();
context.AuthenticateRequest += ContextOnAuthenticateRequest;
context.EndRequest += ContextOnEndRequest;
}
示例2: DiscountRulesHasAllProductsController
public DiscountRulesHasAllProductsController(IDiscountService discountService,
ISettingService settingService, IPermissionService permissionService)
{
this._discountService = discountService;
this._settingService = settingService;
this._permissionService = permissionService;
}
示例3: UpdateExchangeRateTask
public UpdateExchangeRateTask(ICurrencyService currencyService,
ISettingService settingService, CurrencySettings currencySettings)
{
this._currencyService = currencyService;
this._settingService = settingService;
this._currencySettings = currencySettings;
}
示例4: NivoSliderPlugin
public NivoSliderPlugin(IPictureService pictureService,
ISettingService settingService, IWebHelper webHelper)
{
this._pictureService = pictureService;
this._settingService = settingService;
this._webHelper = webHelper;
}
示例5: PaymentPayPalStandardController
public PaymentPayPalStandardController(IWorkContext workContext,
IStoreService storeService,
ISettingService settingService,
IPaymentService paymentService,
IOrderService orderService,
IOrderProcessingService orderProcessingService,
ILocalizationService localizationService,
IStoreContext storeContext,
ILogger logger,
IWebHelper webHelper,
PaymentSettings paymentSettings,
PayPalStandardPaymentSettings payPalStandardPaymentSettings)
{
this._workContext = workContext;
this._storeService = storeService;
this._settingService = settingService;
this._paymentService = paymentService;
this._orderService = orderService;
this._orderProcessingService = orderProcessingService;
this._localizationService = localizationService;
this._storeContext = storeContext;
this._logger = logger;
this._webHelper = webHelper;
this._paymentSettings = paymentSettings;
this._payPalStandardPaymentSettings = payPalStandardPaymentSettings;
}
示例6: WebWorkContext
public WebWorkContext(Func<string, ICacheManager> cacheManager,
HttpContextBase httpContext,
ICustomerService customerService,
IStoreContext storeContext,
IAuthenticationService authenticationService,
ILanguageService languageService,
ICurrencyService currencyService,
IGenericAttributeService attrService,
TaxSettings taxSettings, CurrencySettings currencySettings,
LocalizationSettings localizationSettings, Lazy<ITaxService> taxService,
IStoreService storeService, ISettingService settingService,
IUserAgent userAgent)
{
this._cacheManager = cacheManager("static");
this._httpContext = httpContext;
this._customerService = customerService;
this._storeContext = storeContext;
this._authenticationService = authenticationService;
this._languageService = languageService;
this._attrService = attrService;
this._currencyService = currencyService;
this._taxSettings = taxSettings;
this._taxService = taxService;
this._currencySettings = currencySettings;
this._localizationSettings = localizationSettings;
this._storeService = storeService;
this._settingService = settingService;
this._userAgent = userAgent;
}
示例7: ClickatellSmsProvider
public ClickatellSmsProvider(ClickatellSettings clickatellSettings,
ILogger logger, ISettingService settingService)
{
this._clickatellSettings = clickatellSettings;
this._logger = logger;
this._settingService = settingService;
}
示例8: ManageController
public ManageController(
IUnitOfWorkAsync unitOfWorkAsync,
ISettingService settingService,
ICategoryService categoryService,
IItemService itemService,
IPictureService pictureService,
IItemPictureService itemPictureService,
IOrderService orderService,
ICustomFieldService customFieldService,
ICustomFieldCategoryService customFieldCategoryService,
ICustomFieldItemService customFieldItemService,
ISettingDictionaryService settingDictionaryService,
IItemStatService itemStatService,
DataCacheService dataCacheService,
SqlDbService sqlDbService)
{
_settingService = settingService;
_settingDictionaryService = settingDictionaryService;
_categoryService = categoryService;
_itemService = itemService;
_pictureService = pictureService;
_itemPictureService = itemPictureService;
_orderService = orderService;
_customFieldService = customFieldService;
_customFieldCategoryService = customFieldCategoryService;
_customFieldItemService = customFieldItemService;
_itemStatService = itemStatService;
_dataCacheService = dataCacheService;
_sqlDbService = sqlDbService;
_unitOfWorkAsync = unitOfWorkAsync;
}
示例9: BasicReportModule
public BasicReportModule(IRegionManager regionManager, BasicReportView basicReportView,
IWorkPeriodService workPeriodService, IPrinterService printerService, ICacheService cacheService,
IInventoryService inventoryService, IUserService userService, IAutomationService automationService,
IApplicationState applicationState, ILogService logService, ISettingService settingService)
: base(regionManager, AppScreens.ReportView)
{
ReportContext.PrinterService = printerService;
ReportContext.WorkPeriodService = workPeriodService;
ReportContext.InventoryService = inventoryService;
ReportContext.UserService = userService;
ReportContext.ApplicationState = applicationState;
ReportContext.CacheService = cacheService;
ReportContext.LogService = logService;
ReportContext.SettingService = settingService;
_userService = userService;
_regionManager = regionManager;
_basicReportView = basicReportView;
SetNavigationCommand(Resources.Reports, Resources.Common, "Images/Ppt.png", 60);
PermissionRegistry.RegisterPermission(PermissionNames.OpenReports, PermissionCategories.Navigation, Resources.CanDisplayReports);
PermissionRegistry.RegisterPermission(PermissionNames.ChangeReportDate, PermissionCategories.Report, Resources.CanChangeReportFilter);
//todo refactor
automationService.RegisterParameterSource("ReportName", () => ReportContext.Reports.Select(x => x.Header));
}
示例10: MailChimpInstallationService
public MailChimpInstallationService(MailChimpObjectContext mailChimpObjectContext,
IScheduleTaskService scheduleTaskService, ISettingService settingService)
{
this._mailChimpObjectContext = mailChimpObjectContext;
this._scheduleTaskService = scheduleTaskService;
this._settingService = settingService;
}
示例11: DynamicReportService
public DynamicReportService(
IDynamicReportRepository dynamicReportRepository,
ISettingService serviceSetting)
{
_dynamicReportRepository = dynamicReportRepository ?? new DynamicReportRepository();
_serviceSetting = serviceSetting ?? new SettingService();
}
示例12: PaymentAuthorizeNetController
public PaymentAuthorizeNetController(ISettingService settingService,
ILocalizationService localizationService, AuthorizeNetPaymentSettings authorizeNetPaymentSettings)
{
this._settingService = settingService;
this._localizationService = localizationService;
this._authorizeNetPaymentSettings = authorizeNetPaymentSettings;
}
示例13: PaymentManualController
public PaymentManualController(ISettingService settingService,
ILocalizationService localizationService, ManualPaymentSettings manualPaymentSettings)
{
this._settingService = settingService;
this._localizationService = localizationService;
this._manualPaymentSettings = manualPaymentSettings;
}
示例14: SetUp
public new void SetUp()
{
_languageRepo = MockRepository.GenerateMock<IRepository<Language>>();
var lang1 = new Language
{
Name = "English",
LanguageCulture = "en-Us",
FlagImageFileName = "us.png",
Published = true,
DisplayOrder = 1
};
var lang2 = new Language
{
Name = "Russian",
LanguageCulture = "ru-Ru",
FlagImageFileName = "ru.png",
Published = true,
DisplayOrder = 2
};
_languageRepo.Expect(x => x.Table).Return(new List<Language>() { lang1, lang2 }.AsQueryable());
_storeMappingRepo = MockRepository.GenerateMock<IRepository<StoreMapping>>();
var cacheManager = new NopNullCache();
_settingService = MockRepository.GenerateMock<ISettingService>();
_eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
_eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));
_localizationSettings = new LocalizationSettings();
_languageService = new LanguageService(cacheManager, _languageRepo, _storeMappingRepo,
_settingService, _localizationSettings, _eventPublisher);
}
示例15: PurchaseOrderPaymentProcessor
public PurchaseOrderPaymentProcessor(PurchaseOrderPaymentSettings purchaseOrderPaymentSettings,
ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
{
this._purchaseOrderPaymentSettings = purchaseOrderPaymentSettings;
this._settingService = settingService;
this._orderTotalCalculationService = orderTotalCalculationService;
}