private void WriteScavengeCompletedEvent(string streamName, Guid scavengeId, ClientMessage.ScavengeDatabase.ScavengeResult result, string error, long spaceSaved, TimeSpan timeTaken) { var scavengeCompletedEvent = new Event(Guid.NewGuid(), SystemEventTypes.ScavengeCompleted, true, new Dictionary <string, object> { { "scavengeId", scavengeId }, { "nodeEndpoint", _nodeEndpoint }, { "result", result }, { "error", error }, { "timeTaken", timeTaken }, { "spaceSaved", spaceSaved } }.ToJsonBytes(), null); _ioDispatcher.WriteEvent(streamName, ExpectedVersion.Any, scavengeCompletedEvent, SystemAccount.Principal, x => WriteScavengeEventCompleted(x, streamName)); }
private void WriteScavengeCompletedEvent(string streamName, Guid scavengeId, ClientMessage.ScavengeDatabase.ScavengeResult result, string error, long spaceSaved, TimeSpan timeTaken) { var scavengeCompletedEvent = new Event(Guid.NewGuid(), SystemEventTypes.ScavengeCompleted, true, new Dictionary <string, object> { { "scavengeId", scavengeId }, { "nodeEndpoint", _nodeEndpoint }, { "result", result }, { "error", error }, { "timeTaken", timeTaken }, { "spaceSaved", spaceSaved } }.ToJsonBytes(), null); WriteScavengeDetailEvent(streamName, scavengeCompletedEvent, MaxRetryCount); }