Closed t2y closed 1 year ago
@cpuschma Could you review this? I don't have a strong opinion. I just want to confirm other opinions.
Is anyone interested in this PR? I'm glad to determine whether we provide DirSyncAsync or not.
@cpuschma Welcome back! Thank you for your review. I added a migration function with the deprecated message.
I'm now developing an application to connect the Windows AD server and get entries. Thanks to #436, I can use DirSync() method to search. As my requirement, I have to handle several ten thousand entries. This is not so big, but waste of memory at once. I noticed #440 provides a search asynchronous feature, so I can search without getting all entries at once.
I looked into the code in DirSync() method and tested it. I refactored some minor changes for maintainability.
About DirSyncAsync() method
I made it as below. It works in my environment.
However, I can implement this by myself like this. So, what do you think about whether we provide this short-cut helper or not? I made this to confirm dirsync search works with asynchronous, so DirSyncAsync() method is not important for me.