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

@@ -72,7 +72,7 @@ namespace Umbraco.Web.Compose
composition.SetDatabaseServerMessengerOptions(GetDefaultOptions);
composition.SetServerMessenger<BatchedDatabaseServerMessenger>();
composition.Register<ISyncBootStateAccessor, BatchedDatabaseServerMessenger>(Lifetime.Singleton);
composition.Register<ISyncBootStateAccessor>(factory=> factory.GetInstance<IServerMessenger>() as BatchedDatabaseServerMessenger, Lifetime.Singleton);
}
}