Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TryAddCouchbaseBucket extension #2

Merged
merged 1 commit into from
Jan 25, 2017
Merged

Conversation

brantburnett
Copy link
Owner

Motivation

Need a way to registered a Couchbase bucket which won't register the
bucket again if it is already registered.

Modifications

Added TryAddCouchbaseBucket to IServiceCollection extensions, which uses
TryAddSingleton instead of AddSingleton to register the bucket.

Results

Consumer can optionally use TryAddCouchbaseBucket, and if the bucket is
already registered it will be ignored.

Motivation
----------
Need a way to registered a Couchbase bucket which won't register the
bucket again if it is already registered.

Modifications
-------------
Added TryAddCouchbaseBucket to IServiceCollection extensions, which uses
TryAddSingleton instead of AddSingleton to register the bucket.

Results
-------
Consumer can optionally use TryAddCouchbaseBucket, and if the bucket is
already registered it will be ignored.
@brantburnett
Copy link
Owner Author

@brantburnett brantburnett merged commit 21e3c6c into master Jan 25, 2017
@brantburnett brantburnett deleted the tryaddcouchbasebucket branch January 25, 2017 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant