Michael Altmann

Results 56 comments of Michael Altmann

Thanks for your questions. @Tvde1 already answered it - FluentResult is standalone, the project samples with mediatr or cqrs are only samples to show FluentResults in different contexts.

Cool. I was not aware that something similar already exists. I had a look at it - I think that the new aspnetcore integration package will be similar to your...

I pushed currently my first version of the aspnetcore integation. https://github.com/altmann/FluentResults/tree/features/AspNetCoreIntegration/src/FluentResults.Samples.WebHost/Controllers Public APIs - ToActionResult(...) to transform a Result / Result to a HttpResponse [example](https://github.com/altmann/FluentResults/blob/features/AspNetCoreIntegration/src/FluentResults.Samples.WebHost/Controllers/WeatherForecastWithControllerSpecificProfileController.cs) - Optional custom transformation behaviour...

@awaters-meltin Thank you for your comment. I also played around a bit with an aspnetcore filter but then I deleted the code. This biggest disadvantage of filters is the intransparency...

Is the usage of the [ProblemDetails](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.problemdetails?view=aspnetcore-7.0) class a MUST-HAVE in the default logic of FluentResults.Extensions.AspNetCore? For sure the default logic can be overwritten. What is the experience with ProblemDetails and...

Haha, in my current project in the job we also have a custom error model. ;) I will have a look at the ProblemDetails class in the next days and...

> This will be an excellent addition. > > It would be good if `ToActionResult` on `Result` returned `ActionResult` rather than `ActionResult`. I tried it but then it is not...

Thanks for all the feedback. Because I'am out of time I released today the [v0.1.0](https://www.nuget.org/packages/FluentResults.Extensions.AspNetCore/0.1.0). Its on nuget, so you should be able to use it. If you use it...

I don't know how to so it. Maybe you have to clone the wiki repo and make a pr https://github.com/altmann/FluentResults.wiki.git

@Kysluss Thank you for your preparation. I think I would call the new method with a new name. Maybe MergeFlat() or only Flat(). What do you think? If I see...