diff --git a/src/Umbraco.Core/CoreBootManager.cs b/src/Umbraco.Core/CoreBootManager.cs
index 59bda786c9..1a8f72e356 100644
--- a/src/Umbraco.Core/CoreBootManager.cs
+++ b/src/Umbraco.Core/CoreBootManager.cs
@@ -404,18 +404,16 @@ namespace Umbraco.Core
ServerRegistrarResolver.Current = new ServerRegistrarResolver(
new ConfigServerRegistrar());
- //by default (outside of the web) we'll use the default server messenger without
- //supplying a username/password, this will automatically disable distributed calls
- // .. we'll override this in the WebBootManager
+ //by default we'll use the database server messenger with default options (no callbacks),
+ // this will be overridden in the web startup
ServerMessengerResolver.Current = new ServerMessengerResolver(
- new WebServiceServerMessenger());
+ new DatabaseServerMessenger(ApplicationContext, true, new DatabaseServerMessengerOptions()));
MappingResolver.Current = new MappingResolver(
ServiceProvider, LoggerResolver.Current.Logger,
() => PluginManager.ResolveAssignedMapperTypes());
-
//RepositoryResolver.Current = new RepositoryResolver(
// new RepositoryFactory(ApplicationCache));
diff --git a/src/Umbraco.Core/Sync/BatchedDatabaseServerMessenger.cs b/src/Umbraco.Core/Sync/BatchedDatabaseServerMessenger.cs
deleted file mode 100644
index b16caa8779..0000000000
--- a/src/Umbraco.Core/Sync/BatchedDatabaseServerMessenger.cs
+++ /dev/null
@@ -1,76 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using Newtonsoft.Json;
-using Umbraco.Core.Models.Rdbms;
-using umbraco.interfaces;
-
-namespace Umbraco.Core.Sync
-{
- ///
- /// An that works by storing messages in the database.
- ///
- ///
- /// abstract because it needs to be inherited by a class that will
- /// - trigger FlushBatch() when appropriate
- /// - trigger Boot() when appropriate
- /// - trigger Sync() when appropriate
- ///
- public abstract class BatchedDatabaseServerMessenger : DatabaseServerMessenger
- {
-
- protected BatchedDatabaseServerMessenger(ApplicationContext appContext, bool enableDistCalls, DatabaseServerMessengerOptions options)
- : base(appContext, enableDistCalls, options)
- {
-
- }
-
- protected abstract ICollection GetBatch(bool ensureHttpContext);
-
- public void FlushBatch()
- {
- var batch = GetBatch(false);
- if (batch == null) return;
-
- var instructions = batch.SelectMany(x => x.Instructions).ToArray();
- batch.Clear();
- if (instructions.Length == 0) return;
-
- var dto = new CacheInstructionDto
- {
- UtcStamp = DateTime.UtcNow,
- Instructions = JsonConvert.SerializeObject(instructions, Formatting.None),
- OriginIdentity = LocalIdentity
- };
-
- ApplicationContext.DatabaseContext.Database.Insert(dto);
- }
-
- protected override void DeliverRemote(IEnumerable servers, ICacheRefresher refresher, MessageType messageType, IEnumerable