You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi
I am developing a server with blacksheep and it should have DI with singleton and some background job of the singleton classes. In your tutorial it is said that we can get the singleton object like this:
service = app.service_provider[Example]
but it comes with error that exception=AttributeError("'Application' object has no attribute 'service_provider'")
I came to an answer that it should be like this instead:
hi
I am developing a server with blacksheep and it should have DI with singleton and some background job of the singleton classes. In your tutorial it is said that we can get the singleton object like this:
but it comes with error that exception=AttributeError("'Application' object has no attribute 'service_provider'")
I came to an answer that it should be like this instead:
https://www.neoteroi.dev/blacksheep/dependency-injection/#services-that-require-asynchronous-initialization
The text was updated successfully, but these errors were encountered: