Alex Klaus

Results 17 comments of Alex Klaus

Thank you for the transparency. I agree that the index part is the trickiest (sure, it's based on calculating hashes on the vectors, but the devil's in the detail). Then...

Got the same exception with EF 6. What's with the official resolution? Should we all give up Clutch and move on with something different on EF 6?

In case of an invalid `ModelState`, the official recommendation for logging is via leveraging [ApiBehaviorOptions](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.apibehavioroptions) and described in dotnet/AspNetCore.Docs/issues/12157. With a [sample](https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/web-api/index/samples/3.x/Startup.cs) like this: ```csharp services.AddControllers() .ConfigureApiBehaviorOptions(options => { //...

Another option is to implement a ProblemDetailsFactory ([docs](https://docs.microsoft.com/en-us/aspnet/core/web-api/handle-errors#implement-problemdetailsfactory)). As an example, check out an [implementation of that factory](https://github.com/khellang/Middleware/blob/master/src/ProblemDetails/ProblemDetailsFactory.cs) from [khellang](https://github.com/khellang).

Andrew Lock wrote a series of block posts titled "[Working with the result pattern](https://andrewlock.net/series/working-with-the-result-pattern/)" that might also be worth referencing.

After some preliminary research, the idea seems viable but has some downsides. **Experiment** In my research, I created a test filter: ```csharp public class ActionFilter : IActionFilter, IEndpointFilter { public...

Hey, As I understand, you're using the [MediatR.Extensions.Caching](https://github.com/Imprise/Imprise.MediatR.Extensions.Caching) extension and the distributed cache (as the `MemoryCache` doesn't require serialisation). As the `IDistributedCache` relies on binary serialisation (with classes marked by...