本文整理汇总了C#中IWorkContextAccessor类的典型用法代码示例。如果您正苦于以下问题:C# IWorkContextAccessor类的具体用法?C# IWorkContextAccessor怎么用?C# IWorkContextAccessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IWorkContextAccessor类属于命名空间,在下文中一共展示了IWorkContextAccessor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ShadowCultureManager
public ShadowCultureManager(IRepository<CultureRecord> cultureRepository,
IEnumerable<ICultureSelector> cultureSelectors,
ISignals signals,
IWorkContextAccessor workContextAccessor) {
_workContextAccessor = workContextAccessor;
_underlyingCultureManager = new DefaultCultureManager(cultureRepository, cultureSelectors, signals, workContextAccessor);
}
开发者ID:qt1,项目名称:orchard_contrib-RM.Localization,代码行数:7,代码来源:ShadowCultureManager.cs
示例2: ContentPickerNavigationProvider
public ContentPickerNavigationProvider(
IContentDefinitionManager contentDefinitionManager,
IWorkContextAccessor workContextAccessor) {
_contentDefinitionManager = contentDefinitionManager;
_workContextAccessor = workContextAccessor;
T = NullLocalizer.Instance;
}
开发者ID:anycall,项目名称:Orchard,代码行数:7,代码来源:ContentPickerNavigationProvider.cs
示例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;
}
开发者ID:omidam81,项目名称:Ver1.0,代码行数:28,代码来源:CampaignController.cs
示例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;
}
开发者ID:wezmag,项目名称:Coevery,代码行数:26,代码来源:PlacementService.cs
示例5: Text
public Text(string scope, IWorkContextAccessor workContextAccessor, ILocalizedStringManager localizedStringManager)
{
_scope = scope;
_workContextAccessor = workContextAccessor;
_localizedStringManager = localizedStringManager;
Logger = NullLogger.Instance;
}
开发者ID:gokhandisikara,项目名称:Coevery-Framework,代码行数:7,代码来源:Text.cs
示例6: ShippingOptionResolver
public ShippingOptionResolver(
IShippingService shippingService,
IWorkContextAccessor workContextAccessor)
{
_shippingService = shippingService;
_workContextAccessor = workContextAccessor;
}
开发者ID:rtpHarry,项目名称:OShop,代码行数:7,代码来源:ShippingOptionResolver.cs
示例7: PatternBasedBreadcrumbsProvider
public PatternBasedBreadcrumbsProvider(
IPatternService patterns,
IWorkContextAccessor accessor)
{
_patterns = patterns;
_accessor = accessor;
}
开发者ID:Timbioz,项目名称:SciGitAzure,代码行数:7,代码来源:PatternBasedBreadcrumbsProvider.cs
示例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;
}
开发者ID:gokhandisikara,项目名称:Coevery-Framework,代码行数:7,代码来源:ResourceFilter.cs
示例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;
}
开发者ID:omidam81,项目名称:Ver1.0,代码行数:29,代码来源:HomeController.cs
示例12: CultureService
public CultureService(IWorkContextAccessor workContextAccessor, IOrchardServices orchardServices, ICultureManager cultureManager, ILocalizationService localizationService)
{
_orchardServices = orchardServices;
_cultureManager = cultureManager;
//_workContextAccessor = workContextAccessor;
_localizationService = localizationService;
}
开发者ID:qt1,项目名称:orchard_contrib-RM.Localization,代码行数:7,代码来源:CultureService.cs
示例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;
}
开发者ID:rgardler,项目名称:dpp,代码行数:25,代码来源:MediaServicesService.cs
示例14: ContextToken
public ContextToken(
IWorkContextAccessor workContextAccessor)
{
_workContextAccessor = workContextAccessor;
T = NullLocalizer.Instance;
}
开发者ID:webadvanced,项目名称:Orchard-ContentReference,代码行数:7,代码来源:ContextToken.cs
示例15: MissingSettingsBanner
public MissingSettingsBanner(IOrchardServices orchardServices, IWorkContextAccessor workContextAccessor)
{
_orchardServices = orchardServices;
_workContext = workContextAccessor.GetContext();
T = NullLocalizer.Instance;
}
开发者ID:fengweijp,项目名称:Orchard.Disqus,代码行数:7,代码来源:MissingSettingsBanner.cs
示例16: ShippingInfoResolver
public ShippingInfoResolver(
IContentManager contentManager,
IWorkContextAccessor workContextAccessor)
{
_contentManager = contentManager;
_workContextAccessor = workContextAccessor;
}
开发者ID:rtpHarry,项目名称:OShop,代码行数:7,代码来源:ShippingInfoResolver.cs
示例17: SlickService
public SlickService(IWorkContextAccessor wca, ICacheManager cacheManager, ISignals signals, IMediaLibraryService mediaService)
{
_wca = wca;
_cacheManager = cacheManager;
_signals = signals;
_mediaService = mediaService;
}
开发者ID:grapto,项目名称:js.Slick,代码行数:7,代码来源:SlickService.cs
示例18: Authorizer
public Authorizer(IAuthorizationService authorizationService, IWorkContextAccessor workContextAccessor)
{
_authorizationService = authorizationService;
_workContextAccessor = workContextAccessor;
T = NullLocalizer.Instance;
}
开发者ID:l1183479157,项目名称:RabbitHub,代码行数:7,代码来源:Authorizer.cs
示例19: CustomerResolver
public CustomerResolver(
ICustomersService customersService,
IWorkContextAccessor workContextAccessor)
{
_customersService = customersService;
_workContextAccessor = workContextAccessor;
}
开发者ID:rtpHarry,项目名称:OShop,代码行数:7,代码来源:CustomerResolver.cs
示例20: SameTermsFilter
public SameTermsFilter(ITaxonomyService taxonomyService,
IWorkContextAccessor workContextAccessor)
{
_taxonomyService = taxonomyService;
_workContextAccessor = workContextAccessor;
T = NullLocalizer.Instance;
}
开发者ID:Codinlab,项目名称:SameTermsFilter,代码行数:7,代码来源:SameTermsFilter.cs
注:本文中的IWorkContextAccessor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论