public NewRelicInsightsMessageBroker(ShellSettings shellSettings, IEnumerable <INewRelicInsightsMessageTransformer> messageTransformers) { _shellSettings = shellSettings; _messageTransformers = messageTransformers; _messages = new Collection <object>(); Settings = new LazyField <NewRelicInsightsSettingsPart>(); Settings.Loader(() => { var settings = new NewRelicInsightsSettingsPart { AccountId = GetLongConfig("Glimpse.Orchard.NewRelicInsights.AccountId"), AppId = GetLongConfig("Glimpse.Orchard.NewRelicInsights.AppId"), InsertKey = ConfigurationManager.AppSettings["Glimpse.Orchard.NewRelicInsights.InsertKey"], BufferSize = GetIntConfig("Glimpse.Orchard.NewRelicInsights.BufferSize"), }; SettingsAreValid = !string.IsNullOrEmpty(settings.InsertKey) && settings.AccountId > 0 && settings.BufferSize > 0 && settings.BufferSize <= 1000; return(settings); }); }
public DefaultLayerEvaluationService(IConditionManager conditionManager, IOrchardServices orchardServices) { _conditionManager = conditionManager; _orchardServices = orchardServices; Logger = NullLogger.Instance; T = NullLocalizer.Instance; _activeLayerIDs = new LazyField<int[]>(); _activeLayerIDs.Loader(PopulateActiveLayers); }
public DefaultLayerEvaluationService(IConditionManager conditionManager, IOrchardServices orchardServices) { _conditionManager = conditionManager; _orchardServices = orchardServices; Logger = NullLogger.Instance; T = NullLocalizer.Instance; _activeLayerIDs = new LazyField <int[]>(); _activeLayerIDs.Loader(PopulateActiveLayers); }
public CurrentContentAccessor( IContentManager contentManager, RequestContext requestContext) { _contentManager = contentManager; _requestContext = requestContext; _currentContentItemField.Loader(GetCurrentContentItem); _contentItemMemory = new Dictionary <int, ContentItem>(); }
public CachedLayerEvaluationService(IPerformanceMonitor performanceMonitor, IRuleManager ruleManager, ILayerRetrievalService layerRetrievalService) { _performanceMonitor = performanceMonitor; _ruleManager = ruleManager; _layerRetrievalService = layerRetrievalService; Logger = NullLogger.Instance; T = NullLocalizer.Instance; _activeLayerIds = new LazyField <int[]>(); _activeLayerIds.Loader(PopulateActiveLayers); }
public CachedLayerEvaluationService(IPerformanceMonitor performanceMonitor, IRuleManager ruleManager, ILayerRetrievalService layerRetrievalService) { _performanceMonitor = performanceMonitor; _ruleManager = ruleManager; _layerRetrievalService = layerRetrievalService; Logger = NullLogger.Instance; T = NullLocalizer.Instance; _activeLayerIds = new LazyField<int[]>(); _activeLayerIds.Loader(PopulateActiveLayers); }
public GlimpseLayerEvaluationService(IGlimpseService glimpseService, IOrchardServices orchardServices, UrlHelper urlHelper, IConditionManager conditionManager) { _glimpseService = glimpseService; _orchardServices = orchardServices; _urlHelper = urlHelper; _conditionManager = conditionManager; Logger = NullLogger.Instance; T = NullLocalizer.Instance; _activeLayerIDs = new LazyField <int[]>(); _activeLayerIDs.Loader(PopulateActiveLayers); }
public DefaultMessageBroker() { _messageBroker = new LazyField <IMessageBroker>(); _messageBroker.Loader(() => { var context = HttpContext.Current; if (context == null) { return(new NullMessageBroker()); } return(((GlimpseRuntime)context.Application.Get("__GlimpseRuntime")).Configuration.MessageBroker); }); }
public CurrentContentAccessor( IContentManager contentManager, RequestContext requestContext, ICacheManager cacheManager, ISignals signals, IWorkContextAccessor wca) { _contentManager = contentManager; _requestContext = requestContext; _currentContentItemField.Loader(GetCurrentContentItem); _cacheManager = cacheManager; _signals = signals; _workContext = wca; }
public CurrentContentAccessor(IContentManager contentManager, RequestContext requestContext) { _contentManager = contentManager; _requestContext = requestContext; _currentContentItemField.Loader(GetCurrentContentItem); }
public ProfilePageUserAccessor(IMembershipService membershipService, RequestContext requestContext) { _membershipService = membershipService; _requestContext = requestContext; _currentProfilePageUser.Loader(GetCurrentProfilePageUser); }
public CurrentContentAccessor(IOrchardServices orchardServices, IHomeAliasService homeAliasService) { _orchardServices = orchardServices; _currentContentItemField.Loader(GetCurrentContentItem); _homeAliasService = homeAliasService; }