I would like to validate if my ResumeToken exists in Oplog before to set ChangeStreamOptions.ResumeAfter to avoid Error (286)ChangeStreamHistoryLost withow querying the Oplog.rs
something like that:
ValidateResumeToken(my_resume_token)
var options = new ChangeStreamOptions
{
FullDocument = ChangeStreamFullDocumentOption.WhenAvailable,
FullDocumentBeforeChange = ChangeStreamFullDocumentBeforeChangeOption.WhenAvailable,
ResumeAfter = my_resume_token
};
_cursor = await collection.WatchAsync(options, CancellationToken.None);
Thanks in advance!