Using Singleton then create a new instance of HttpClient #188
Answered
by
fuzzzerd
jakSolutionsGithub
asked this question in
Q&A
|
Hello, Sorry for the possible dumb question. I do not understand why in startup.cs we create a Singleton which contains the connection data to the FileMaker server and then in the examples, we must declare :
if we want to use FindAsyc() for exemple. Can you enlighten me? |
Answered by
fuzzzerd
Oct 30, 2021
Replies: 1 comment 2 replies
|
The samples are intended to be a fully usable sample that is separate from using the asp.net dependency injection framework. If you have a singleton defined in startup.cs, you should be able to just request an |
2 replies
Answer selected by
jakSolutionsGithub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The samples are intended to be a fully usable sample that is separate from using the asp.net dependency injection framework.
If you have a singleton defined in startup.cs, you should be able to just request an
IFileMakerApiClientfrom the di container and use it directly.