Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class BucketBuilderExtensions

Extensions for IBucketBuilder and IScopeBuilder.

Inheritance
object
BucketBuilderExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Extensions.DependencyInjection
Assembly: Couchbase.Extensions.DependencyInjection.dll
Syntax
public static class BucketBuilderExtensions

Methods

View Source

AddDefaultCollection<T>(IBucketBuilder)

Register an interface based on INamedCollectionProvider which will be injected with the default scope/collection.

Declaration
[RequiresDynamicCode("Dynamically generated INamedBucketProvider or INamedCollectionProvider instances require dynamic code and are not compatible with AOT. Use an overload that accepts a concrete implementation type instead.")]
public static IScopeBuilder AddDefaultCollection<T>(this IBucketBuilder builder) where T : class, INamedCollectionProvider
Parameters
Type Name Description
IBucketBuilder builder

The bucket builder.

Returns
Type Description
IScopeBuilder

The IScopeBuilder for the default scope, used for chaining.

Type Parameters
Name Description
T

Interface inherited from INamedCollectionProvider. Must not add any members.

Remarks

This method is not AOT-compatible. Use the overload that accepts a concrete implementation.

View Source

AddDefaultScope(IBucketBuilder)

Begin building the default scope.

Declaration
public static IScopeBuilder AddDefaultScope(this IBucketBuilder builder)
Parameters
Type Name Description
IBucketBuilder builder

The bucket builder.

Returns
Type Description
IScopeBuilder

The IScopeBuilder for building the scope.

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.