Tagged articles - .NET Core

Found 20 articles tagged with .NET Core

How to get client IP Address in ASP.NET Core 2
Fetching client IP address in ASP.NET Core
0
As ASP.NET was evolving, there were different ways accessing client IP address from the request. The way to do it WebForms and MVC Web application is simply accessing request of the current HTTP context ... read more
Differences in Time Zone Formats in .NET Core on Windows and Linux host
Overcoming TimeZoneInfo load problem on different operating systems in .NET Core
 
0
Recently I was working on converting DateTime value to a different time zone because the servers are running in a different time zone than the database where data is stored. Storing DateTime values in UTC time zone is the best practice, so simple DateTime.ToUniversalTime method call solves the problem... read more
Different ways to set environment variable for .NET Core application
How to setup environment value for .NET Core application on Linux host
0
.NET Core comes with a great feature for loading different config file based on the environment. Environment is picked up from the host environment variables whether that is Windows on Linux based OS... read more
Building advanced .NET Core Global Tool using CommandLineUtils package
Overview on the new feature in .NET Core 2.1 and how to build and use your own tool
 
0
Microsoft introduced a new feature called Global Tool with the new .NET Core release 2.1. Essentially, global tools are simple console applications which can be invoked from the console... read more
Generate C# models from Protobuf proto files directly from Visual Studio
Generating C# classes inside .NET Core project from proto using protogen
0
I wrote about boosting performances by choosing the right serialization in .NET projects. The top best performing according to my tests and many of the online comparisons are Apache Avro and Google Protocol Buffer (Protobuf) serialization... read more
Loading RSA key pair from PEM files in .NET Core with C#
BouncyCastle wrapper for loading RSA keys from PEM files instead of XML files
0
Recently I wrote and article about using asymmetric keys for token based authentication in ASP.NET Core. As I was setting up the RSA keys to test the demo appliation I kept running to some challanges that did not make thigs going so smooth Challenge number 1 - OpenSSL ... read more
Sending email in ASP.NET Core using SmtpClient and dependency injection
Using dependency injection to send email in ASP.NET Core
0
Starting with .NET Core 2.0, Microsoft introduced SmtpClient, identical implementation as in .NET 4. This made sending emails from the application a lot easier as there is functionality out of the box and you do not have to rely on the 3rd party nuget packages. If you inspect this class, you will see that the only interface it inherits is IDisposable, so it does not give you many options for injection unless you wrap it with your own implementation and interface, but since we are not going to go that deep into the dependency injection, we'll just focus on creating a client instance using .NET Core dependency injection framework. ... read more
Clean service stop by handling SIGTERM on Linux with .NET Core 2.1
Application stop with SIGTERM handling in .NET Core 2.1 on Linux using generic host
0
Some time ago I wrote about setting up .NET Core service/daemon on Linux. Back than I was using .NET Core 2.0 SDK on both development Windows machine and Linux host machine... read more
Advanced versioning in ASP.NET Core Web API
Different approaches in ASP.NET Core Web API versioning
0
Some time ago I wrote an article about ASP.NET Core Web API versioning which describes route based Web API endpoint versioning. I love route versioning and to me it is the best way of versioning because it is pretty straight, but there are situations where this kind of versioning is not suitable. On nuget.org you can find Microsoft.AspNetCore.Mvc.Versioning package which gives you more options on how you can version your Web API endpoints... read more
How to setup ASP.NET Core run on Debian Linux with Nginx
Hosting and running ASP.NET Core project on linux
0
In two previous articles (How to setup .NET Core 2 on Debian or Ubuntu Linux distro the easy way & Setting up .NET Core service/daemon on Debian Linux OS) I explained how to setup and run .NET Core based applications and how to run them as a Linux daemon. In this article we are going to take it one step further... read more

.NET

read more

JavaScript

read more

SQL/T-SQL

read more

Umbraco CMS

read more