Technology

Deploying app.config transformation through NuGet packages

Posted on

There is a not-very-well-documented, and in my opinion limited, library from Microsoft called XML Document Transformation (XDT) that can be used to transform XML files by using XML attributes and a transformation file. The syntax reference information can be found here. The library itself is also distributed via NuGet. Many online articles have discussed the *.config transformation, including Custom web.config transforms and merge, Using web.config transforms with app.config files and XDT (web.config) Transforms in non-web projects. Additionally, deploying XDT in NuGet packages have also been discussed in a few articles, such as How to use XDT in NuGet – Examples and Facts, and Configuration File and Source Code Transformation. The limitations of the XDT are observed by the number of out-of-the-box verbs available to perform the transformation: Insert, […]

Technology

Setting the Thread.CurrentPrincipal inside an async method

Posted on

Earlier this week I spent more time than I wanted for trying to figure out why I was losing the Thread.CurrentPrincipal value after having set it inside an async method. My history goes a lot like the one described here. But it took me sometime to find that website on Google, which was retrieving many results for web applications but very few for desktop. I also found similar problem described by this post. In summary, I was working on authentication for a desktop application, using Open ID Connect and Identity Server. My calls to the user store are all based on WCF services, and I wanted to have the authentication done asynchronously to prevent my UI from locking up. According to […]

Agile

Why another blog on technology?

Posted on

Hello all, If you are taking the time to read this blog, you might be asking yourself why I decided to create another blog about technology. Forgive me my selfishness, but the short answer is that I am doing for myself. I have realized sometime ago that I learn things more effectively if I teach someone about the topic. I don’t mean to have full blown class lectures here, but the simple action of writing and explaining things help me learn. So, that’s my reason: so that I can better understand and remember the topics that I am writing about. I also plan to use this blog myself as references for problems that I encounter and resolve. Nonetheless, I do welcome any reader and appreciate […]