protected void LoadManifest() { //The server supports collections so build them from the manifest if (Context.SupportsCollections && !DeferredExceptions.Any()) { foreach (var scope in _scopeFactory.CreateScopes(this, Manifest !)) { Scopes.TryAdd(scope.Name, scope); } } else { //build a fake scope and collection for pre-6.5 clusters or in the bootstrap failure case //for deferred error handling var defaultScope = _scopeFactory.CreateDefaultScope(this); Scopes.TryAdd(defaultScope.Name, defaultScope); } }
protected void LoadManifest() { var subject = this as IBootstrappable; //The server supports collections so build them from the manifest if (Context.SupportsCollections && subject.IsBootstrapped && BucketType != BucketType.Memcached) { foreach (var scope in _scopeFactory.CreateScopes(this, Manifest !)) { Scopes.AddOrUpdate(scope.Name, scope, (_, oldScope) => scope); } } else { //build a fake scope and collection for pre-6.5 clusters or in the bootstrap failure case //for deferred error handling var defaultScope = _scopeFactory.CreateDefaultScope(this); Scopes.TryAdd(defaultScope.Name, defaultScope); } }