Overcoming the Pitfalls of Async/await Part 1

Overcoming the Pitfalls of Async/await Part 1

What will you learn in the blog:  I have this topic Asynchronous Programming in C# in my mind since long and I have been giving some small talks on Async/await in my organization. So I thought why not collect and summarize all the awesome knowledge stuff and the pain stuff as well which I went through in one of my projects while using Async in C# and blog about it for the community feedback.
So let’s get started and check out the awesome demos and diagrams which I have brought for you from books and blogs that I have read and other practical implementations. Before going further, I hope you are a beginner, intermediate or expert C# developer.
Continue reading

Replace If with Polymorphism with AutoFac DI Container


As the title specifies we will be Replacing the conditional if and Switch statement with the help of Polymorphism using DI container and talk about the benefits of doing the same in this article. Oops gives us pretty much great features which we are aware of theoretically but never implements practically. Polymorphism is one of the main features provided by Object-Oriented Languages which in turn implies that a Parent class can have more than one behavior and can point towards its child classes at runtime. If you want to learn more about OOPS features, you can go through below blog which talks about oops and other features. Continue reading