RavenDB-2574: A new approach for notifying that is a bit more complex but avoids race conditions on the Resolved and Detected.