Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The issue related to this PR is. #284
A new extension method is added to the ServicesCollection,
AddQueues
.This method will get an action which has the
IServicesCollection
as the parameter so you can useAddQueue
as you would do normally.Also it will inject
IQueues
intoDI
so you can query for the registered queues.The ToDos in my opinion are as follow:
AddQueues
method it should NOT be possible that inside the action we can again callAddQueues
. Maybe we can replace the IServicesCollection withQueuesOption
and this class will provide theAddQueue
method.appsettings.json
. If they specify the old config it would be apply for all but if they specify the name of thequeue
as the key and the value will be the delay insideappsettings
we can adjust each queue.DI
we should check if the same name is already added or not and handle the error accordingly.