InstancePerDependencybut repositories are injected as
InstancePerLifetimeScope. So each command/event handling action you will get same repository instance. You can easily reproduce it by Get/Update/Get or Get/Add/Get flow in your
CustomersHandlers. You will see that Add or Update not reflect in same scope.
First post. Guys, thank you for all the hard work you put into DevMentors, you are amazing for sharing with the community!!
Can anyone point me to a resource where i can learn more about consuming an API with JWT token? I can make POST/GET requests, but i'm uncertain what to do with the token and have a few practical questions that i can't find answers too...
Do i store the token in my httpclient class? should the httpclient class be a singleton? if it is a singleton, how do you ensure each user has their own token and aren't using someone else's token..?