本文整理汇总了C#中IWorkContextAccessor类的典型用法代码示例。如果您正苦于以下问题:C# IWorkContextAccessor类的具体用法?C# IWorkContextAccessor怎么用?C# IWorkContextAccessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IWorkContextAccessor类属于命名空间,在下文中一共展示了IWorkContextAccessor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShadowCultureManager
public ShadowCultureManager(IRepository<CultureRecord> cultureRepository,
IEnumerable<ICultureSelector> cultureSelectors,
ISignals signals,
IWorkContextAccessor workContextAccessor) {
_workContextAccessor = workContextAccessor;
_underlyingCultureManager = new DefaultCultureManager(cultureRepository, cultureSelectors, signals, workContextAccessor);
}
示例2: ContentPickerNavigationProvider
public ContentPickerNavigationProvider(
IContentDefinitionManager contentDefinitionManager,
IWorkContextAccessor workContextAccessor) {
_contentDefinitionManager = contentDefinitionManager;
_workContextAccessor = workContextAccessor;
T = NullLocalizer.Instance;
}
示例3: 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;
}
示例4: PlacementService
public PlacementService(
IContentManager contentManager,
ISiteThemeService siteThemeService,
IExtensionManager extensionManager,
IShapeFactory shapeFactory,
IShapeTableLocator shapeTableLocator,
RequestContext requestContext,
IEnumerable<IContentPartDriver> contentPartDrivers,
IEnumerable<IContentFieldDriver> contentFieldDrivers,
IVirtualPathProvider virtualPathProvider,
IWorkContextAccessor workContextAccessor
)
{
_contentManager = contentManager;
_siteThemeService = siteThemeService;
_extensionManager = extensionManager;
_shapeFactory = shapeFactory;
_shapeTableLocator = shapeTableLocator;
_requestContext = requestContext;
_contentPartDrivers = contentPartDrivers;
_contentFieldDrivers = contentFieldDrivers;
_virtualPathProvider = virtualPathProvider;
_workContextAccessor = workContextAccessor;
Logger = NullLogger.Instance;
}
示例5: Text
public Text(string scope, IWorkContextAccessor workContextAccessor, ILocalizedStringManager localizedStringManager)
{
_scope = scope;
_workContextAccessor = workContextAccessor;
_localizedStringManager = localizedStringManager;
Logger = NullLogger.Instance;
}
示例6: ShippingOptionResolver
public ShippingOptionResolver(
IShippingService shippingService,
IWorkContextAccessor workContextAccessor)
{
_shippingService = shippingService;
_workContextAccessor = workContextAccessor;
}
示例7: PatternBasedBreadcrumbsProvider
public PatternBasedBreadcrumbsProvider(
IPatternService patterns,
IWorkContextAccessor accessor)
{
_patterns = patterns;
_accessor = accessor;
}
示例8: AuthorizationFrontendEnginePageHandler
public AuthorizationFrontendEnginePageHandler(
IFrontendAuthorizer frontendAuthorizationService,
IWorkContextAccessor workContextAccessor)
{
_frontendAuthorizationService = frontendAuthorizationService;
_workContextAccessor = workContextAccessor;
}
开发者ID:Lombiq,项目名称:Associativy-Frontend-Engines-Administration,代码行数:7,代码来源:AuthorizationFrontendEnginePageHandler.cs
示例9: GlobalSetupShellEventHandler
public GlobalSetupShellEventHandler(
ShellSettings shellSettings,
IWorkContextAccessor wca)
{
_shellSettings = shellSettings;
_wca = wca;
}
开发者ID:dementeddevil,项目名称:Orchard-Azure-Application-Insights,代码行数:7,代码来源:GlobalSetupShellEventHandler.cs
示例10: ResourceFilter
public ResourceFilter(
IWorkContextAccessor workContextAccessor,
IShapeFactory shapeFactory)
{
_workContextAccessor = workContextAccessor;
_shapeFactory = shapeFactory;
}
示例11: HomeController
// GET: Home
public HomeController(
IRepository<CurrencyRecord> currencyRepository,
IRepository<OrderStatusRecord> orderStatusRepository,
IOrderService orderService,
ICampaignService campaignService,
IShapeFactory shapeFactory,
IContentManager contentManager,
ISiteService siteService,
IPayoutService payoutService,
INotifier notifierService,
ITeeyootMessagingService teeyootMessagingService,
IWorkContextAccessor workContextAccessor)
{
_currencyRepository = currencyRepository;
_orderStatusRepository = orderStatusRepository;
_orderService = orderService;
_campaignService = campaignService;
_contentManager = contentManager;
_siteService = siteService;
_payoutService = payoutService;
_notifierService = notifierService;
_teeyootMessagingService = teeyootMessagingService;
Shape = shapeFactory;
T = NullLocalizer.Instance;
_workContextAccessor = workContextAccessor;
}
示例12: CultureService
public CultureService(IWorkContextAccessor workContextAccessor, IOrchardServices orchardServices, ICultureManager cultureManager, ILocalizationService localizationService)
{
_orchardServices = orchardServices;
_cultureManager = cultureManager;
//_workContextAccessor = workContextAccessor;
_localizationService = localizationService;
}
示例13: MediaServicesService
public MediaServicesService(IOrchardServices orchardServices,
IShapeFactory shapeFactory,
ISiteService siteService,
IConfig config,
IBlobStorageService blobStorageService,
IRepository<EncodedMediaRecord> encodedMediaRepository,
IRepository<MediaItemRecord> mediaItemRepository,
IRepository<EncodingPresetRecord> encodingPresetRepository,
IRepository<ThumbnailRecord> thumbnailRepository,
IRepository<VideoMediaItemRecord> videoMediaItemRepository,
IWorkContextAccessor workContextAccessor)
{
_config = config;
_blobStorageService = blobStorageService;
_encodedMediaRepository = encodedMediaRepository;
_mediaItemRepository = mediaItemRepository;
_encodingPresetRepository = encodingPresetRepository;
_thumbnailRepository = thumbnailRepository;
_videoMediaItemRepository = videoMediaItemRepository;
_workContextAccessor = workContextAccessor;
_orchardServices = orchardServices;
_shapeFactory = shapeFactory;
_siteService = siteService;
_logger = NullLogger.Instance;
}
示例14: ContextToken
public ContextToken(
IWorkContextAccessor workContextAccessor)
{
_workContextAccessor = workContextAccessor;
T = NullLocalizer.Instance;
}
示例15: MissingSettingsBanner
public MissingSettingsBanner(IOrchardServices orchardServices, IWorkContextAccessor workContextAccessor)
{
_orchardServices = orchardServices;
_workContext = workContextAccessor.GetContext();
T = NullLocalizer.Instance;
}