Documentation around some of the internals like app.services #258
Unanswered
virajkanwade
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am following https://github.com/Neoteroi/BlackSheepEmptyProject as a guide for a project.
But what I am unable to understand is in
configure_services
how do I configure postgres connection?There is a note regarding using
ServicesRegistrationContext
, but can't seem to figure out how?Also, I looked at blacksheep-sqlalchemy for reference. https://github.com/Neoteroi/BlackSheep-SQLAlchemy/blob/main/blacksheepsqlalchemy/__init__.py
But I could not understand what are all the app.services. functions?
app.services.add_instance
app.services.add_alias
app.services.add_scoped_by_factory
Having some documentation on the internals will help others add more features to blacksheep.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions