Nico
Nico
As shown in the TaskExtensions file we have two extensions methods for the Task and Task{OfT} types, provided for the .NET Standard 2.0 environment. Isn't it better to provide the...
I was thinking about this issue, because I saw some of your last web projects there's a file AssemblyExtensions.cs that provides a generic GetAttribute method The signature is: public static...
Nowadays with EntityFrameworkCore 7 we have IInterceptor interface for diagnostics tools. Actually the DbContextOptionsBuilder object only have two overloads of the method AddInterceptors The first one takes an IEnumerable and...
The method accepts an IEnumerable of string because the IEnumerable type doesn't support the Select extension method
I had an idea for a new extension method that I started using in my projects After sign-in task, I create a collection of claims. Usually this collection ends with...
packages update project re-organization: separated authentication and authorization with a new class library project, added configurations for ApplicationUser, ApplicationUserRole and Tenant entities
I gave a fast look at Microsoft.IdentityModel.JsonWebTokens repository and I noticed that the methods signature like ValidateTokenAsync method don't require the CancellationToken parameter. However, even though Microsoft didn't add this...
This is the sample I was talking about last day. As I explained, by words it was actually hard for me to show a sample. Now I hope that everything...
I was thinking about the use of an interface for the input validation that can be instantiated by two different types: - FluentValidationService - MiniValidationService The service will be registered...
With .NET 9, Guid struct obtained a new method called: CreateVersion7(). By using conditional compilation we can specify that on .NET 6, .NET 7 and .NET 8, only Guid.NewGuid() can...