Skip to content Skip to sidebar Skip to footer

Technology

Hidden Gems in C# Exception Handling

The TRY/CATCH/FINALLY exception handling has been around since C# 1.0 and you are very unlikely to find a developer who does not know how to use them. What may not be so obvious is that there are a number of hidden gems that few developers use. This is on top of new enhancements that have…

Building PGAgent 4.0 from Source Code with Visual Studio 2019

One of the benefits of having the source code is that often the comments in the code can provide good insight into the inner workings that the normal documentation does not. It can also show code that will output more logging when certain options are set. The biggest benefit comes from being able to attach…

C#1 to C#7.2: Delegates and Lambdas

This article is about looking at a specific C# feature and see how the functionality has been changed as each new C# version is released. It’s nice to look at “What’s New” articles but sometimes I find myself unable to remember at which version a specific feature can be used. What are they? …

Building PostgreSQL 12 from Source with Visual Studio 2019

One of the benefits of having the source code is that often the comments in the code can provide good insight into the inner workings that the normal documentation does not. It can also show code that will output more logging when certain options are set. The biggest benefit comes from being able to attach…

Listing Build and Release Variable Values in Visual Studio Team Services

I use Visual Studio Team Service (VSTS) as part of my DevOps process for end to end Continuous Integration (CI) and Continuous Delivery (CD). As the product grows so does the number of built in variables and whilst the documentation explains the variables you have available, understanding what the values are can be tricky. At…

OData v4 in ASP.NET WebApi Part 10: Alternate Keys

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi. The source code for the project can be found here. Conventional Data Model Up to now our two code examples built the Entity Data Model (EDM) using the Conventional Data Model. We defined a…

Embedding .NET Assemblies Inside Other .NET Assemblies

There are times when you create an assembly executable that has dependencies on other assemblies. You may want pass this assembly around without having the need for it to be installed however; if you have to copy DLL’s around with the EXE, there could be a chance that they are forgotten or the wrong versions…

SOLID Principles Part 04: Liskov Substitution Principle

Principle This principle is an extension of the Open Close Principle and was first introduced by Barbara Liskov during a conference keynote speech. We need to ensure that new derived classes are extending the base classes without changing their behaviour. You should be able to replace a class with its base type without…

__trashed

In this series of blogs I want to show how we access the Azure REST API directly using Postman in order to understand how applications can get authenticated and authorized automatically without having the user enter a username and password. Overview The Azure REST API is the under pinning’s for all the other…

OData v4 in ASP.NET WebApi Part 08: Single Key

This is a series of blogs detailing my introduction to using OData v4 with C# and ASP.NET WebApi. The source code for the project can be found here. Creating the Project The Project is called Part08 Create the Customer Model In the Models folder create a Customer class…