Creating nuget packages in .NET Core

Creating nuget packages in .NET Core

Since last week, my Stactive library is functional. It learned how to log request information to MongoDb. I decided, it is time to make it available as Nuget packages - partially to learn how to do it and write this blog post. If you want to see how easy it is, read on.

read more

Plugins for ASP.NET Core Middleware

Plugins for ASP.NET Core Middleware

My Stactive project is now functional. It can log ASP.NET Core requests to a MongoDb database. Stactive is a middleware, which in future will be available as a Nuget package. It will support few storing options - as separate plugins - Nuget packages. To make it happen, I needed to implement MongoDb support as a plugin and I decided it might be worth to share how it’s done.

read more

Client IP in the ASP.NET Core behind a reverse proxy

Client IP in the ASP.NET Core behind a reverse proxy

One of my current projects is hosted in docker environment (more on that topic coming!). The setup requires me to use an Nginx reverse proxy. Additionally, for performance reasons, I also use CloudFlare as a CDN. This all means, before the user gets to my application, he has to go through at least two proxy servers. That’s an issue when you want to know your users IP address.

read more

Dependency Injection in the ASP.NET Core Middleware

Dependency Injection in the ASP.NET Core Middleware

I am creating a project called Stactive, which will be helpful in logging requests and other events from the ASP.NET Core applications. Today, I introduced a RequestLogger class, which implements IRequestLogger interface. As always, I wanted to inject this in the constructor and realised it needs to be registered in the DI container. I would like to show you how it’s done.

read more

Web Analytics