fix support for non run states

This commit is contained in:
nzdev
2021-03-26 16:13:47 +13:00
parent 7d135899be
commit 5f9d126ab7
6 changed files with 50 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
using Umbraco.Core;
using Umbraco.Core.Composing;
using Umbraco.Core.Sync;
using Umbraco.Web.PublishedCache.NuCache.DataSource;
namespace Umbraco.Web.PublishedCache.NuCache
@@ -10,6 +11,9 @@ namespace Umbraco.Web.PublishedCache.NuCache
{
base.Compose(composition);
//Overriden on Run state in DatabaseServerRegistrarAndMessengerComposer
composition.Register<ISyncBootStateAccessor, NonRuntimeLevelBootStateAccessor>(Lifetime.Singleton);
// register the NuCache database data source
composition.Register<IDataSource, DatabaseDataSource>();