private void ResetApexCursor(long newApexCursor) { lock (apexCursorSyncRoot) { //cancel current quantum worker quantumWorker?.Dispose(); //set new apex cursor, and start quantum worker quantumWorker = new QuantumSyncWorker(newApexCursor, this); } }
private void ResetApexCursor(long newApexCursor) { lock (apexCursorSyncRoot) { logger.Trace($"Connection {ClientKPAccountId}, apex cursor reset requested. New apex cursor {newApexCursor}"); //cancel current quantum worker QuantumWorker?.Dispose(); //set new apex cursor, and start quantum worker QuantumWorker = new QuantumSyncWorker(Context, newApexCursor, this); logger.Trace($"Connection {ClientKPAccountId}, apex cursor reseted. New apex cursor {newApexCursor}"); } }