Tag Archives: WebApi

IdentityServer4, Web API and Angular in a single ASP.NET Core project

This article shows how IdentityServer4 with Identity, a data Web API, and an Angular SPA could be setup inside a single ASP.NET Core project. The application uses the OpenID Connect Implicit Flow with reference tokens to access the API. The Angular application uses webpack to build. Code: https://github.com/damienbod/AspNet5IdentityServerAngularImplicitFlow History: 2019-09-20: Updated ASP.NET Core 3.0, Angular […]

Import and Export CSV in ASP.NET Core

This article shows how to import and export csv data in an ASP.NET Core application. The InputFormatter and the OutputFormatter classes are used to convert the csv data to the C# model classes. Code: https://github.com/damienbod/AspNetCoreCsvImportExport 2019-09-14: Updated to ASP.NET Core 3.0 2019-02-15: Updated to ASP.NET Core 2.2 2018-07-09: Updated to ASP.NET Core 2.1 2017-10-29: Support […]

Self Hosted Web Api using Owin and Unity, Nuget Package Documentation

This is the documentation for the nuget package Unity.SelfHostWebApiOwin. The package is dependent on Katana 2. The code can be found here: Example, how to use: https://github.com/damienbod/HelloWorldUnityWithSelfHostedOwin Source code: https://github.com/damienbod/SelfHostWebApiWithOwinAndUnityUsingNuget How to create an application using the nuget package: Step 1: Create a Console application. This will be used to start the application or could […]

AOP with ASP.NET Web Api

This blog demonstrates the usage of filters and unity interface interception with an ASP.NET Web Api application. AOP = Aspect oriented programming. This programming paradigm can be used to add functionality to existing methods. In the following example, we wrap the controller method with diagnosis using filters and then we wrap the business manager with […]