I am running a process in the Data Exchange Framework so I don't really have access to the tracker. Is there a way to tell if a contact is locked/in session other than using the following and checking the status (already locked)?
LockAttemptResult<Contact> lockResult = contactRepository.TryLoadContact(emailAddress, leaseOwner, TimeSpan.FromMinutes(1));
That returns a status, but also tries and locks it. I just need to know if it is already locked.
I was hoping
var contact = contactRepository.LoadContactReadOnly(email); would also include a lock status, but does not seem to be a way to get it. I need a way basically to pass in an email and return a lock status. This post was helpful, but I am hoping there is another way to do it. Thanks.