Picture the scenario. You have a .NET windows service running on a 1000 servers and one of the assemblies needs an update. How does each service pick up the update?
There are two options
Package and deploy your application to each of the 1000 servers as you normally do.
Have your service look at a…
Principle
A class should only have a single responsibility. E.g. If it’s a logging class it should only do logging. If it’s a payments class it should only do payments, and so forth. A class should only have one reason to change.
Scenario
To demonstrate SRP I will use an E-Commerce…
Principle
A class, properties and methods should be open for extension but closed for modification. E.g. If we need to add new functionality to a class, it should be added using a derived class.
Scenario
To demonstrate OCP I will continue using the E-Commerce example from the previous blog. A customer…
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.
In the last blog we created a customer entity set with a single key. In this blog I will create a composite key on an entity.
Creating…
In this tutorial series I will be showing how we can develop a ten pin bowling class to calculate a players score using Unit Testing. This makes a difference from the usual calculator demos you normally see. There are myriad of sources that explain Unit Testing and implementing classes using Test Driven Development (TDD), so…
In the last blog I discussed the project structure and the unit testing frameworks I will use. In this blog I will begin building out the class and tests based on our business requirements.
Players Name
I need to enter a player’s name and have the ability to get it. I always start…
In the last blog I introduced Redis. In this blog I will cover some of the basics.
Command Line Interface
You can interact with the Redis server using the redis-cli command line interface. Here I am checking my Redis server is up and running. Note: I am using an installation by Jetware…
In Part 4 I showed how to setup the network side in order to connect to the container from the container host and a Hyper-v VM running on the container host.
In this blog I am going to show you how to create a container with more options and then how we can connect to…
In the last blog I described the objects that make up a Neo4j database. In this blog I will discuss how we create each database object.
It would be impossible to learn Neo4j without learning the Cypher query language. At the time of writing the UI and the most popular client query libraries all rely…
In this last blog I showed how to create a container with more options and then how we can connect to it from outside using sqlcmd and SQL Server Management Studio .
In this blog I will explain how we can use volumes to persist our database data.
Persisting Database Data
When…