madhatter22 / LinqToLdap

C# LINQ provider built on top of System.DirectoryServices.Protocols for querying and updating LDAP servers.
MIT License
45 stars 23 forks source link

CancellationToken support #29

Open thomaswurtz opened 1 year ago

thomaswurtz commented 1 year ago

Hi, Are there any plans for cancellation token support in the async API? I think this would be a nice addition. One suggestion would be to add it as a new overloads to the async extension methods as other ORMs like NHibernate.

In case support is missing in underlying libraries an option can be to just use cancellationToken.ThrowIfCancellationRequested();

Thanks Thomas