Category .NET

Building production ready Angular apps with Visual Studio and ASP.NET Core

This article shows how Angular SPA apps can be built using Visual Studio and ASP.NET Core which can be used in production. Lots of articles, blogs templates exist for ASP.NET Core and Angular but very few support Angular production builds. Although Angular 2 is not so old, many different seeds and build templates already exist, […]

Creating an ASP.NET Core 1.1 VS2017 Docker application

This blog shows how to setup a basic ASP.NET Core 1.1 application using Visual studio 2017 and Docker. Code: https://github.com/damienbod/AspNetCoreVS2017Docker This article from Swaminathan Vetri demonstates how to setup everything for an ASP.NET Core 1.0 application. Now the application needs to be updated to ASP.NET Core 1.1. Open the csproj file and update the PackageReference […]

Implementing a Client White-list using ASP.NET Core Middleware

This article shows how a client white-list could be implemented using ASP.NET Core middleware checking the Remote IP address of the request. If the client IP is on the white-list, no restrictions exist. Code: https://github.com/damienbod/ClientIpAspNetCoreIIS The middleware uses an admin white-list parameter from the constructor to compare with the remote ip address from the HttpContext […]

EF Core diagnosis and features with MS SQL Server

This article shows how Entity Framework Core messages can be logged, and compared using the SQL Profiler and also some of the cool new 1.1 features, but not all. All information can be found on the links at the bottom and especially the excellent docs for EF Core. Code: https://github.com/damienbod/EFCoreFeaturesAndDiag project.json with EF Core packages […]

Extending Identity in IdentityServer4 to manage users in ASP.NET Core

This article shows how Identity can be extended and used together with IdentityServer4 to implement application specific requirements. The application allows users to register and can access the application for 7 days. After this, the user cannot log in. Any admin can activate or deactivate a user using a custom user management API. Extra properties […]

Angular2 search with ASP.NET Core and Elasticsearch

This article shows how a website search could be implemented using Angular 2, ASP.NET Core and Elasticsearch. Most users expect autocomplete and a flexible search like some of known search websites. When the user enters a char in the search input field, an autocomplete using a shingle token filter with a terms aggregation used to […]

Angular2 autocomplete with ASP.NET Core and Elasticsearch

This article shows how autocomplete could be implemented in Angular 2 using ASP.NET Core MVC as a data service. The API uses Elasticsearch to query the data requests. ng2-completer is used to implement the Angular 2 autocomplete functionality. Code: https://github.com/damienbod/Angular2AutoCompleteAspNetCoreElasticsearch 2017.01.07: Updated to csproj, webpack 2.2.0-rc.3, angular 2.4.1 To use autocomplete in the Angular 2 […]