Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Interface IBucketBuilder

    Applies additional configuration to a bucket for dependency injection.

    Namespace: Couchbase.Extensions.DependencyInjection
    Assembly: Couchbase.Extensions.DependencyInjection.dll
    Syntax
    public interface IBucketBuilder

    Methods

    | Edit this page View Source

    AddCollection<TService, TImplementation>()

    Register a collection via an interface based on INamedCollectionProvider and a concrete implementation of that interface.

    Declaration
    IBucketBuilder AddCollection<TService, TImplementation>() where TService : class, INamedCollectionProvider where TImplementation : class, TService
    Returns
    Type Description
    IBucketBuilder

    The IBucketBuilder for chaining.

    Type Parameters
    Name Description
    TService

    Interface inherited from INamedCollectionProvider.

    TImplementation

    Concrete implementation of TService.

    | Edit this page View Source

    AddScope(string)

    Begin building a scope with one or more collections.

    Declaration
    IScopeBuilder AddScope(string scopeName)
    Parameters
    Type Name Description
    string scopeName

    Name of the scope.

    Returns
    Type Description
    IScopeBuilder

    The IScopeBuilder for building the scope.

    Extension Methods

    BucketBuilderExtensions.AddDefaultCollection<T>(IBucketBuilder)
    BucketBuilderExtensions.AddDefaultScope(IBucketBuilder)
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.