Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

Shared scoped between different updates #9

Open
tuscen opened this issue Dec 7, 2017 · 1 comment
Open

Shared scoped between different updates #9

tuscen opened this issue Dec 7, 2017 · 1 comment

Comments

@tuscen
Copy link
Member

tuscen commented Dec 7, 2017

In your current implementation all update handlers share a scope because getUpdates can return more than one update at a time. I think it would be better if every individual update would have it's own scope. It can be achieved by using IServiceScopeFactory and explicitly creating scope for each update inside HandleUpdateAsync.

@tuscen
Copy link
Member Author

tuscen commented Mar 2, 2018

This issue is a part of #14 and will be solved together with it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant