Hi I have a custom duration for the Exists method but things still take 30+ seconds to process, why's that?, thanks
Ask general questions here.
3 posts • Page 1 of 1
Repository elements have their own search timeout value, which accumulates from the parent items, but when checking for an optional thing I frequently test for existence on a repository item thus:
Obviously the hardcoded magic number is just for example!
Code: Select all
if (repo.someItemInfo.Exists(Duration.FromMilliseconds(1000)) DoThing();
That's what I'm doing, and from what I understand it should ignore the repository's search timeout if you put in your own value, but i'm not sure if it's doing that since it takes a very long time