Writing a Linux Daemon in C#

When you want to run a .NET Core process as a daemon on Red Hat Enterprise Linux, you can create a custom systemd unit. Today, I’ll write about two examples of custom systemd units for .NET Core. One is a oneshot type for running a .NET Core console application and the other is a simple type for running an ASP.NET Core Web application.
Oneshot Type With a Console Application
Building an App
You can use dotnet run in systemd with the specifying project directory as a working directory. However, let’s build a binary file and use it for systemd. Create your project with dotnet new and edit Program.cs as follows:

Link: https://dzone.com/articles/writing-a-linux-daemon-in-c?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

New & Upcoming Course Highlights: Entity Framework with ASP.NET MVC

Every week, new courses and workshops are published to the growing Treehouse Library! Here’s a short list of what we’ve added recently, upcoming course highlights, and our weekly video update of What’s New at Treehouse. Start learning to code today…
The post New & Upcoming Course Highlights: Entity Framework with ASP.NET MVC appeared first on Treehouse Blog.

Link: http://blog.teamtreehouse.com/new-upcoming-course-highlights-entity-framework-asp-net-mvc

Using ELK in .NET Applications

This article is part of a series of articles about modern tooling and techniques for building distributed systems in DotNet.
In our first article, we saw how easy it was to set up a full ELK stack by leveraging pre-built containers. If you don’t already have your ELK server online and configured, please follow the tutorial in Containers For.NET Developers.

Link: https://dzone.com/articles/using-elk-in-net-applications?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

Best Practices for Error Handling in ASP.NET MVC

Error handling is an important part of any application. ASP.NET provides several different ways to handle errors. In this article, we will review MVC error handling best practices.
Between .NET, ASP.NET, and MVC there are several potential ways to handle application errors.

Link: https://dzone.com/articles/best-practices-for-error-handling-in-aspnet-mvc?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

Web Diary System for jQuery and C# MVC

Introduction
This article describes using the very fine open source jQuery plugin, “FullCalendar,” by Adam Shaw to develop an appointment booking system. I will demonstrate numerous ways to use the plugin and show how it can integrate with an SQL Backend with Entity-Framework. The aim of this article is to give you almost everything you need, that you can tweak immediately, to bring diary/appointment functionality to your MVC application. This is a complete walk-through including setup of a linked EF database in SQL. I am going to use the Twitter Bootstrap framework to help speed things along. I am also going into a lot of detail to help those wishing to use the plugin to get started as fast as possible. The attached project is written in C# MVC 4. 
Background
I was recently looking for a good reliable web-based diary plugin that would allow me to give a solid appointment management functionality to my apps. Apart from some commercial offerings, the most suitable solution open source plugin I found was FullCalendar. Get it here. The demo scenario will have the following functionality:

Link: https://dzone.com/articles/web-diary-system-for-jquery-and-c-mvc?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

A Glimpse Into CAKE

For a couple of years now, I’ve been using C# Make to configure my builds. Also, at my company, we use FAKE in some projects. One of the projects has been using it more and more over the last two years. FAKE is really great and I love using it, but there is one problem with it: most C# developers don’t really like to use new things. The worst case scenario for most C# developers – it seems – is a new tool, that uses an exotic language like F#.
This is why I have to maintain the FAKE build scripts since I introduced FAKE to the team.

Link: https://dzone.com/articles/a-glimpse-into-cake?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev

C# 7.0: Throw Expressions

C# 7.0 introduces throw expressions. We can add exception throwing to expression-bodied members, null-coalescing expressions, and conditional expressions. This blog post introduces throw expressions, demonstrates how to use them, and also provides a peek behind a compiled throw expression.

Throw expressions are the way to tell the compiler to throw an exception under specific conditions like in expression bodied members or inline comparisons. Before going to some practical use cases let’s see some illustrative examples of throw expressions that were originally posted in the .NET Blog post, What’s New in C# 7.0.

Link: https://dzone.com/articles/c-70-throw-expressions?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev