Menu

Skip to content
  • Home
  • About
  • Color Coder
Hamid Mosalla
Twitter Email LinkedIn GitHub Stack Overflow RSS

Hamid Mosalla

Programming Adventures

Asp.Net Core 2

May 17, 2018 by Hamid Mosalla on .Net, Asp.Net Core, C#

Build UI Tree With Recursive Asp.Net Core View Component

Previous version of Asp.Net MVC had the concept of local view helpers that could contain HTML too. You see an example of this here. But this feature is removed in Asp.Net Core, but we have a better tool to do it. There might be a lot of other replacement solution for using @helper, but in … →

 
April 14, 2018 by Hamid Mosalla on .Net, Asp.Net Core, C#

Asp.Net Core API: Patch Method Without Using JsonPatchDocument

Some time ago, I needed to implement a mechanism for an API to update an entity without using JsonPatchDocument. The reason was that the user of the API didn’t want to necessarily use JSON to use the patch method. But user might want to use XML, Message Pack or any other format. What I needed … →

 
February 15, 2018 by Hamid Mosalla on .Net, Asp.Net Core, C#

Asp.Net Core 2 Logging With Serilog And Microsoft SQL Server Sink

In this post, I’m going to describe how we can configure Serilog with Asp.Net Core 2 web and Api projects. I also configure Serilog to work with SQL Server database to store the logging information. Then I’ll write an extension method and use the built-in exception handling middleware to log exceptions in production environments. What … →

 
December 7, 2017 by Hamid Mosalla on .Net, Asp.Net Core, C#

Policy-based Authorization Using Asp.Net Core 2 And IdentityServer4

In my previous post,  I’ve discussed how we can implement policy-based authorization to secure our API using JWT. But that wasn’t what I end-up using in production. Partly because the built-in mechanism of Asp.Net Core with JWT is not as powerful as IdentityServer4. Also I needed the single sign-on feature of  IdentityServer4. There are two … →

 

Archives

Categories

 
Subscribe!
Copyright © 2022 Hamid Mosalla
Casper Theme By Lacy Morrow