What is the intended use of the useUniqueInstance constructor parameter?
I've been getting some strange permission errors that indicate that perhaps the CallerID property isn't being cleared between instances with this set to true. (It's also possible it's a bug in my code, but I think it's ok).
I'm trying to avoid the startup delay of the "whoami" call each time (is that really required?), but definitely need separate environments and users to be separate.
Some background: My use case is running as close to unmodified as possible plugin code in an Azure Function, so I've created an implementation of IOrganizationServiceFactory that creates a ServiceClient each call. The plugin code calls CreateOrganizationService quite a lot so performance is important.