public void Handle(ClientMessage.MergeIndexes message) { if (_tableIndex.IsBackgroundTaskRunning) { Log.Information("A background operation is already running..."); MakeReplyForMergeIndexes(message); return; } _tableIndex.MergeIndexes(); MakeReplyForMergeIndexes(message); }
private static void MakeReplyForMergeIndexes(ClientMessage.MergeIndexes message) { message.Envelope.ReplyWith(new ClientMessage.MergeIndexesResponse(message.CorrelationId, ClientMessage.MergeIndexesResponse.MergeIndexesResult.Started)); }