C# Preprocessor Directives

You can use preprocessor directives in csharp to provide straightforward instructions to the compiler. For example, these directives allow you to execute certain code elements only under predefined conditions. Another possible field of use is simply the structuring of your source code into blocks, which can be folded in and out of Visual Studio. In this article I will discuss some of these directives. Preprocessor directives are always started with a #-symbol. ...

December 2, 2017 · 2 min · Marcel Jurtz

ServiceStack - Authentication and Authorization

This is the fourth part on my series on how to get started using ServiceStack. Be sure to check out the earlier articles, if you haven’t read them already: Part 1 - What is ServiceStack and why should I use it? Part 2 - Building a Simple Service Part 3 - Using the C#-Client Today, I’ll be adding basic authentication and authorization to the project we’ve created over the last parts. As always, you can get the source code from GitHub. ...

December 1, 2017 · 6 min · Marcel Jurtz

ServiceStack - Using the C#-Client

After we covered the basics of ServiceStack in part one and how to set up a service in part two of this series. Today we’ll go through how the C#-Client can be utilized to make communication between applications even easier. The sourcecode for todays article is available GitHub. If you missed one of the previous parts, feel free to check out Part 1 - What is ServiceStack and why should I use it? or Part 2 - Building a Simple Service. ...

November 27, 2017 · 3 min · Marcel Jurtz

ServiceStack - Building a Simple Service

This is the second post in my series on building web services with ServiceStack. In the first part, I covered the benefits of using ServiceStack, this article continues with the setup of a basic service and its several components. In this and the following parts I will create a simple example project to illustrate the use of servicestack. This project will be an expenses tracker. In this part, we will develop the functionality to add expenses and establish an overall balance. In the following part we will combine them with the C# client. ...

November 25, 2017 · 5 min · Marcel Jurtz

C# - Mastering the Basics - Application Architecture

In this series, I discuss the optimization of the basics of programming in C#. This article deals with the basic structure of an application and its different components. C# Application Architecture The top level always represents the so-called solution. A solution can contain several different projects, whereby a project can be used by different solutions, which allows to reuse source code. Each of a solutions projects compiles into either an executable or a dll. ...

November 25, 2017 · 2 min · Marcel Jurtz