Category: async

  • Saving multiple data–part 31

    I want to load the exchange rates from NBR and ECB and load at once .From here,the challenges of programming for a simple task like this: How we can display the errors ? What if the data exists already for this day and I cannot save into database,because it exists ? How to acknowledge what…

  • My Async Await tutorials

    Rule of thumb: just await / async from top to down.   To deeply understand async await in .NET Core,please follow the following resources:   1. https://channel9.msdn.com/Events/TechDays/Techdays-2014-the-Netherlands/Async-programming-deep-diveĀ  – to gain inner knowledge about what code is async / await 2. Read https://blog.stephencleary.com/2012/02/async-and-await.html to have started into async await 3. Read MSDN for a better understanding…

  • Asynchronous code and exceptions

    There are 2 kinds of coding when handling asynchronous code. The first one is  calling Result: < [code lang="csharp"] t.TwoTask().Result [/code] The second is async /await As such,we will have 2 intercepting code. For the first one we will catch AggregateException For the second one we will catch the FIRST task  exception  ( or,more generic,Exception…