Tagged articles - ASP.NET Core

Found 19 articles tagged with ASP.NET Core

Using custom request and response serializers in ASP.NET Core
Configuring input and output serailzer/deserialier in ASP.NET Core pipeline
0
This is not a new subject and the support for handling WebApi input and output was introduced in .NET Core 2.0 and it's been there since then. There are couple of useful pages out there and it is even well documented on Microsoft official page Custom formatters in ASP.NET Core Web API... read more
Minify ASP.NET MVC Core response using custom middleware and pipeline
Html response content minification on the fly in ASP.NET Core
0
For my website, since it runs on Umbraco 6 and it is basically ASP.NET MVC application. To reduce load time and increase website performances I decided to alternate the response of the application and minify it using simple regular expression. Initially I was trying to do this with YUI Compressor library which has .NET port as NuGet YUICompressor.NET which works fine in most of the cases, but in my case does not skip PRE tags which I use for code snippets on the website... read more
Background working scheduled task in ASP.NET Core MVC application
Using Quartz for scheduling background tasks in .NET Core MVC applications
0
Caching common data like lookups for example in memory of your app can increase significantly your MVC web application performances and response time. Of course this data has to be periodically refreshed. You can use various approaches to refresh data including expiry, but this can create potential bottle necks in your application since once data expires, you will use request thread to pull the data, cache and serve the request response back... read more
Request Filtering in ASP.NET Core using Middleware and request pipeline
Filter requests in ASP.NET Core application through request pipeline configuration
 
0
ASP.NET Core comes with advanced request processing thrugh pipepline configuretion of the .NET Core middleware elements. You can easily specify the steps that will be exscuted on the request object all the way until the response is returned back... read more
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
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
Token based authentication and Identity framework in ASP.NET Core - Part 3
Setting up asymmetric key token based authentication in ASP.NET Core application on top of Identity Framework
0
Recently I wrote about setting up .NET Core Identity Framework and Token based authentication in ASP.NET Core using symmetric key signing. The downside of this approach is that both identity and resource server share the same key for signing and validating the token... read more
Token based authentication and Identity framework in ASP.NET Core - Part 2
Setting up token based authentication in ASP.NET Core application on top of Identity Framework
0
In article Token based authentication and Identity framework in ASP.NET Core - Part 1 I described how to setup identity library for storing user accounts. Now we are going to setup ASP.NET Core Web API project to issue the token for authenticated users so they can access protected resources. Identity Web API instance will be separated from from the resource Web API, so we'll have eventually two and possibly in future more resource services which will all use single identity server fr authentication and issuing access tokens. ... read more
Token based authentication and Identity framework in ASP.NET Core - Part 1
Setting up Identity Framework in ASP.NET Core application
0
In ASP.NET Core identity framework is introduced as a membership provider making user management, authentication and authorization. It is built on to Entity Framework Core ORM which allows you to be storage type independent... 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
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
Use different configuration based on environment value in ASP.NET Core
Different configuration per environment in ASP.NET Core
 
0
In .NET framework, having separate configuration is possible by having different web.config or app.config file transformations since in .NET framework configuration is stored in XML format. You can check more on this in article Separate configuration files per build config in Visual Studio IDE... 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
How to setup .NET Core 2 on Debian or Ubuntu Linux distro the easy way
Installing .NET Core on Linux the short way
0
Many of you who had chance to work docker and .NET Cote on Linux will agree that easiest way of running .NET Core on Linux is to pull microsoft/aspnetcore:2.0 image from docker repository and just setup your app with .Dockerfile. You will be saved of the hassle of setting up the environment and .NET Core on on the Linux machine. But what if that is not an option? What if you really need for some reason to run your application on the specific host and not in the container? ... read more
Google Invisible reCAPTCHA and reCAPTCHA v2 in ASP.NET Core
ASP.NET Core implementation of Google reCAPTCHA and reCAPTCHA v2
0
Recently I wrote and article about setting up and using Google reCAPTCHA v2, better known as "I'm not a robot" validation. If you were setting up reCAPTCHA v2, you probably noticed that there is an option for "Invisible reCAPTCHA" option. This type of validation, instead of asking user to interact with the UI in order to be identified as a human, does not require any direct interaction which can help building better user experience for your visitors... read more

.NET

read more

JavaScript

read more

SQL/T-SQL

read more

Umbraco CMS

read more