Description
If multiple callers on different threads call AddCouchbaseBucket<T>, AddDefaultCollection<T>, or AddCollection<T> then the internal per-type cache used by NamedBucketProxyGenerator and NamedCollectionProxyGenerator is not thread-safe. This may cause exceptions as mentioned in the forums, where an attempt is made to dynamically generate the same type twice. However, it could also cause other thread sync exceptions in the Dictionary.
This applies to Couchbase.Extensions.DependencyInjection during initialization only, it doesn't affect anything once the DI container is configured. It also applies primarily to unit testing scenarios. A typical MVC application would not have this problem because startup DI registration is single-threaded.