Category: shorts

.NET Shorts – Use HttpContextAccessor

Sometimes, you have to get some data from headers/tokens. Sometimes, you have to do it in your application layer. And things can get wierd. You could potentally extract it at controller level and send it as parameter. But that’s just ugly. Luckly, now you have IHttpContextAccessor that makes things easy for you, I, on the other hand, am entirely different story.

.NET Shorts – Startup.cs hell

This happened a few times. You know, you are super excited about your new job and you can’t wait to see code and learn something new. Let’s face it. They killed you on tech interview. There was a talk about microservice, patterns, advanced algorithms, messaging system and what-not. This has to be a good project, right?