Monthly Archives: December 2017

Archive of posts published in the specified Month

Logging in distributed system Part 3 — Exceptions

This is the third part of the Logging series. For your convenience you can find other parts in the table of contents in Part 1 – Correlations So we need to handle errors and exceptions. Web jobs are already covered in the previous…

Logging in distributed system Part 2 — Action filters

This is the second part of the Logging series. For your convenience you can find other parts in the table of contents in Part 1 – Correlations We have our loggers and correlators, now we need to use them. Since we want to…

Logging in distributed system Part 1 — Correlations

This is the first part of the Logging in distributed system series. For your convenience you can find other parts using the links below (or by guessing the address): Part 1 — Correlations Part 2 — Action filters Part 3 — Exceptions Part…

Proxy handling casting in C#

Let’s start with the following code: public interface IHaveASandwich { void Foo(); } public class ASandwichProvider : IHaveASandwich { public void Foo() { Console.WriteLine(“ASandwichProvider — Foo”); } public void Bar() { Console.WriteLine(“ASandwichProvider — Bar”); } } public class Service { public void DoSomethingWithSandwich(IHaveASandwich…

Executing SQL query inside Excel spreadsheet

Did you know that you can execute almost any SQL query directly in your Excel spreadsheet? This can be very useful for executing queries with GROUP BY and aggregates since they cannot be generated that easily in Excel. Let’s begin. I will use…