I was looking for the easiest way to process task asynchronously, but keep the order. However, implementing something on top of the BlockingCollection
seemed a bit of an overkill.
Instead, the original implementation was similar to:
And later on I could await all
I needed to re-implement my function of exporting all bookmarks of a word-document into a dictionary and than setting them based on the changes in the dictionary from Word-Interop to OpenXML SDK. I've found a very helpful answer on StackOverflow suggesting the following solution: IDictionary
bookmarkMap = new Dictionary ();
ThisRibbonCollection' does not contain a definition for 'GetRibbon'.... If you see this error, don't panic, the solution is rather simple. To make matters easier for you, Office AddIns have a partial class "ThisRibbonCollection" which is automatically used to define your Ribbon Control as the MainRibbonControl of the application. This might