Invoke child generic classes' methods using reflection C#

Invoke child generic classes' methods using reflection C#
Hello Guys, Today I’m going to share you some practical usage of reflection that I faced it before. Think that; You have a class and inside class there are some generic classes based the same class. And you want to call the same method of these generic classes. At this point Reflection makes our job easy. With reflection you can reach all these generic classes and invoke their same method.
Read more →

Background process with Hangfire and .NET 6

Background process with Hangfire and .NET 6
For .NET environment sometimes you need some scheduler process for recurring jobs. Most popular schedule tools are Quartz and Hangfire. Before, I had used Quartz in my some projects but after introduced with Hangfire, it completely changed my mind. Hangfire is open and free for commercial use. And one of my project I used Hangfire and you can see the difference between these two tools when you experience both of them.
Read more →

Making downloadable QR Code Generator With Flutter

Making downloadable QR Code Generator With Flutter
One of my side web projects, I needed to use QR Code generator. There are many samples on web but I wanted it to be downloadable. With Flutter I should find the widget and should be saved as Image. At this point RepaintBoundary comes to help. With this widget I captured the widget as Image and to make it downloadable, I used dart:html. To capture widget as Image dart Show/Hide Future<void> _capturePng() async { final picData = await _painter.
Read more →

Use multiple environments in ASP.NET Core with specific appsettings.json

Use multiple environments in ASP.NET Core with specific appsettings.json
Before publishing a service or application to the production, we all may want to see how it behaves on test environments. So we have test servers or test dbs to check apis behaviours with this test environments. Today I m going to show you how you publish your ASPNET Core Web API to the specific environment that will use specific appsettings.json file. As you know there are appsettings.json that stores your connection strings, or other setttings.
Read more →

Error handling by using middlewares in .NET5 Web API

Error handling by using middlewares in .NET5 Web API
Actually this error handling implementation is not specific for .NET5, it can be used on core versions as well but title became more attractive 😜 I needed an error handling implementation on some web apis, and middlewares became best solution for me. Let me tell what I did. I created a new middleware for error handling. This implementation works as global error handling. I can both log the error and send the error as a response to the client.
Read more →