marcingolenia / mcode

Martin's Golenia software development blog.
https://mcode.it
0 stars 0 forks source link

https://mcode.it/blog/2020-06-14-fsharp_with_csharp/?utterances=5135ade0d028f1c07172dc8aAAeAu%2BRnwGgSMsRd4ZLXZSqdZ0nsbifoy6juFSd0hAM%2FN6DFA4XgbrZE9jnsSE35CoP8kcBhl0osziWGs2Qp9btXdZOixaswsRp35c4Br2x6DBd3UDeYYlCeqLQ%3D #22

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

Make F# play nice with C# - how to compose dependencies while hosting with C# project | Blog

F# is a nice functional alternative in .NET. I have convinced my teammates to use F# in our project at my work in a small new accounting bounded context that would be hosted by .NET Core C# host and Autofac based composition root. We already have a small F# based azure-function which has been a warm-welcomed area to extend/introduce changes so why not take F# to the next level? If you are looking for some hints how to deal with F# and C# in one solution this is a must-read.

https://mcode.it/blog/2020-06-14-fsharp_with_csharp/?utterances=5135ade0d028f1c07172dc8aAAeAu%2BRnwGgSMsRd4ZLXZSqdZ0nsbifoy6juFSd0hAM%2FN6DFA4XgbrZE9jnsSE35CoP8kcBhl0osziWGs2Qp9btXdZOixaswsRp35c4Br2x6DBd3UDeYYlCeqLQ%3D

jr-jesse123 commented 3 years ago

UOOWWW!!! I searched a lot for this kind of power!!

I´ve beeing to this post in the past but couldn´t get the concept at the time.

Thank you for sharing!!!

marcingolenia commented 3 years ago

Thanks @jr-jesse123. These kind of words are the wind in the sails ⛵ All in all I would approach F# and C# integration differently now. I have a sample repository, where I have plugged Giraffe into C# netcore Startup - F# HttpHandlers lives together with C# controllers. It is extra easy to do - You may want to check this out. I will also write a short post about it in short future. Cheers!