Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Class BucketBuilderExtensions

    Extensions for IBucketBuilder and IScopeBuilder.

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

    Methods

    | Edit this page View Source

    AddDefaultCollection<T>(IBucketBuilder)

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

    Declaration
    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.

    | Edit this page 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.

    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.