/// <summary>
 ///     Initializes a new instance of the <see cref="PublishedSnapshotServiceEventHandler" /> class.
 /// </summary>
 public PublishedSnapshotServiceEventHandler(
     IPublishedSnapshotService publishedSnapshotService,
     INuCacheContentService publishedContentService)
 {
     _publishedSnapshotService = publishedSnapshotService;
     _publishedContentService = publishedContentService;
 }
示例#2
0
 public NuCacheStartupHandler(
     INuCacheContentService nuCacheContentService,
     IRuntimeState runtimeState)
 {
     _nuCacheContentService = nuCacheContentService;
     _runtimeState          = runtimeState;
 }
 public PublishedSnapshotServiceEventHandler(
     IRuntimeState runtime,
     IPublishedSnapshotService publishedSnapshotService,
     INuCacheContentService publishedContentService,
     IContentService contentService,
     IMediaService mediaService)
     : this(publishedSnapshotService, publishedContentService)
 {
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PublishedSnapshotServiceEventHandler"/> class.
 /// </summary>
 public PublishedSnapshotServiceEventHandler(
     IRuntimeState runtime,
     IPublishedSnapshotService publishedSnapshotService,
     INuCacheContentService publishedContentService,
     IContentService contentService,
     IMediaService mediaService)
 {
     _runtime = runtime;
     _publishedSnapshotService = publishedSnapshotService;
     _publishedContentService  = publishedContentService;
     _contentService           = contentService;
     _mediaService             = mediaService;
 }
示例#5
0
 public PublishedSnapshotService(
     PublishedSnapshotServiceOptions options,
     ISyncBootStateAccessor syncBootStateAccessor,
     IMainDom mainDom,
     ServiceContext serviceContext,
     IPublishedContentTypeFactory publishedContentTypeFactory,
     IPublishedSnapshotAccessor publishedSnapshotAccessor,
     IVariationContextAccessor variationContextAccessor,
     IProfilingLogger profilingLogger,
     ILoggerFactory loggerFactory,
     IScopeProvider scopeProvider,
     INuCacheContentService publishedContentService,
     IDefaultCultureAccessor defaultCultureAccessor,
     IOptions <GlobalSettings> globalSettings,
     IPublishedModelFactory publishedModelFactory,
     IHostingEnvironment hostingEnvironment,
     IOptions <NuCacheSettings> config,
     ContentDataSerializer contentDataSerializer)
 {
     _options = options;
     _syncBootStateAccessor = syncBootStateAccessor;
     _mainDom        = mainDom;
     _serviceContext = serviceContext;
     _publishedContentTypeFactory = publishedContentTypeFactory;
     _publishedSnapshotAccessor   = publishedSnapshotAccessor;
     _variationContextAccessor    = variationContextAccessor;
     _profilingLogger             = profilingLogger;
     _loggerFactory           = loggerFactory;
     _logger                  = _loggerFactory.CreateLogger <PublishedSnapshotService>();
     _scopeProvider           = scopeProvider;
     _publishedContentService = publishedContentService;
     _defaultCultureAccessor  = defaultCultureAccessor;
     _globalSettings          = globalSettings.Value;
     _hostingEnvironment      = hostingEnvironment;
     _contentDataSerializer   = contentDataSerializer;
     _config                  = config.Value;
     _publishedModelFactory   = publishedModelFactory;
 }
 public PublishedSnapshotStatus(IPublishedSnapshotService?service, INuCacheContentService publishedContentService)
 {
     _service = service as PublishedSnapshotService;
     _publishedContentService = publishedContentService;
 }