Removes the DistributedCall section along with CacheRefresher and the ConfigServerRegistrar, changes IServerMessenger to not have any servers parameters since we don't use that.
This commit is contained in:
@@ -71,12 +71,9 @@ namespace Umbraco.Core.Runtime
|
||||
composition.Container.RegisterSingleton<PropertyEditorCollection>();
|
||||
composition.Container.RegisterSingleton<ParameterEditorCollection>();
|
||||
|
||||
// register a server registrar, by default it's the db registrar unless the dev
|
||||
// has the legacy dist calls enabled - fixme - should obsolete the legacy thing
|
||||
// register a server registrar, by default it's the db registrar
|
||||
composition.Container.RegisterSingleton<IServerRegistrar>(f =>
|
||||
{
|
||||
if (UmbracoConfig.For.UmbracoSettings().DistributedCall.Enabled)
|
||||
return new ConfigServerRegistrar(f.GetInstance<IUmbracoSettingsSection>(), f.GetInstance<ILogger>(), f.GetInstance<IGlobalSettings>());
|
||||
if ("true".InvariantEquals(ConfigurationManager.AppSettings["umbracoDisableElectionForSingleServer"]))
|
||||
return new SingleServerRegistrar(f.GetInstance<IRuntimeState>());
|
||||
return new DatabaseServerRegistrar(
|
||||
|
||||
Reference in New Issue
Block a user