Category: AspNetCore

  • What is Dependency Injection

    In this post we are going to look at the concept of dependency injection in general and in asp dotnet core in particular. We will cover a lot of ground in the terms of why it is useful where it came from and how it is baked into asp dotnet core. In subsequent posts we […]

    READ MORE
  • Which IDE for dotnet core

    This post is an introduction into a series of tests with different IDE´s and editors one can use for development with AspNet core (and dotnet core in general of course). I want to use this post to explain the criteria  I used for testing and how I structure the tests. Because those products are quite […]

    READ MORE
  • Asp Identity – Role based Authorization

    Now with basic user management and authentication in place, we can set up Authorization with Roles. That is an authenticated User might have or not have the right to access different parts of the application, based on the membership of a Role. Examples are that only some users are allowed to access the User administration or some […]

    READ MORE
  • Filters in asp.net core

    This post will cover cross cutting concerns with filters in AspNet core I will provide a general overview what filters are and how they can be applied. For this we will look at the four (or as we later see five) categories of filters that aspnetcore offers. What this post will cover The different filter […]

    READ MORE
  • Modelvalidation in AspNetCore

    The ModelBinding process of aspnet core is supported by the model validation process to ensure the success of the modelbinding. As you might recall, Model data is parsed from the ModelBinder and a step by step process to determine where the data comes from and how it should be used. Yet this cannot ensure semantical […]

    READ MORE
  • Modelbinding in AspNetCore

    In this post we are going to explore the way AspNet Core aids us as developers with binding processes that create .Net objects from incoming http requests so that we do not need to parse this values manually. This process is called ModelBinding. And it is very simple to use with the default implementation and […]

    READ MORE
  • Asp Identity- Usermanagement

    Most web applications need some sort of user management system, that allows it to sort out which User should be allowed to access given parts of the application. This can be split into the topics of registration, authentication and authorization. Where registration allows a User to associate themselves with your application. Authentication checks if the User is […]

    READ MORE
  • Asp Identity – Authentication

    Refer to the post about User management for the setup of AspNet Identity the controller that can be used for creating, deleting and updating (editing) Users here. Notice that I show Authentication, Usermanagement and Authorization on a standard MVC controller first. The Web Api counterparts are done in future posts. In this post we will […]

    READ MORE
  • Attribute Routing

    We saw already the use of convention based routing and we saw Attribute Routing in the construction of an api controller and a restful controller. We will now take a closer look at the use of Attribute Routing and its benefits in contrast to convention based routing. What this post will cover How to use […]

    READ MORE
  • Intro to AspNetCore Routing System

    Routing system Essentially the URL Routing system is used to map incoming requests to controller methods. The early routing of Asp.Net matched pretty exactly to the server folder structure. This works well for cgi style applications or aspx, where each file is its own response. But for MVC style applications it makes no sense because http requests […]

    READ MORE