Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Interface IScopeBuilder

    Applies additional configuration to a scope for dependency injection.

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

    Methods

    | Edit this page View Source

    AddCollection<T>(string)

    Register an interface based on INamedCollectionProvider which will be injected with a specific scope and collection name.

    Declaration
    IScopeBuilder AddCollection<T>(string collectionName) where T : class, INamedCollectionProvider
    Parameters
    Type Name Description
    string collectionName

    Name of the collection.

    Returns
    Type Description
    IScopeBuilder

    The IScopeBuilder 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
    In this article
    Back to top © 2025 Couchbase, Inc.