Azure Functions

Some time ago Microsoft announced the Azure Functions. What it is exactly? So, Azure Functions are event driven functions which are executed on some occurrence of events but also can be used on-demand. Couple of benefits of using those: development and deployment is easier comparing to normal webapi or webapps they allows developers to take action by connecting to data sources …

By Dawid on (tags: azure, c#, functions, categories: azure, code)

Nested foreach loops replacement in C#

Nested foreach loops is something that I have always felt uncomfortable with. Recently I have found out more elegant and in some cases even more efficient, replacement for nested double foreach loop. Lets assume we have two lists of strings filled with some values and we want to have a collection of all combinations of elements from list l1with elements from list l2. Obvious so…

By Mirek on (tags: c#, Join, categories: code)

Where should I store settings of my application?

Where should I store user and application settings in my WPF application? Well, in Settings of course. Go to your WPF application properties and Settings tab. If there is nothing there but text in the middle, click on that text. This will create the Settings file in your project. Here you can add settings in the grid. The columns are: Name, Type, Scope and the Value. Name and t…

By Mirek on (tags: c#, settings, WPF, categories: architecture)

Configuring simple TraceSource for logging purposes

In the previous post we saw how to use the built in Trace class for logging facilities. However the Trace class is not the latest Microsoft’s recommended way for logging your application. In this post I will try to present the quickest way of configuring TraceSource and use it for logging purposes. TraceSource class allows you to create as many trace sources as you want and fre…

By Mirek on (tags: c#, logging, .net, TraceSource, tracing, categories: code)