-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TryAddCouchbaseBucket extension (#2)
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.
- Loading branch information
1 parent
65da886
commit 21e3c6c
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters