Replies: 1 comment
-
I'm trying to improve AOT compatibility as a part of #254. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
Has anyone managed to get DotNext.AspNetCore.Cluster to work correctly using the DotNetCore Slim Builder (vs. the regular old school
HostBuilder
) with the goal of building a solution to native AOT code (than IL).We understand that the latest version has removed reflection code, making this possible.
We also intend to use ASP.NET Core Request Delegate Generator as this will also give us AOT-able code for the route mapping.
With this, it is our understanding that we don't have to use
.Add/UseRouting()
.If this is a viable option it would be great to add a sample on this bases to the repo.
From the example
Here is the modified
program.cs
:Where the mapped methods
Startup.SendRumourAsync
,Startup.PrintNeighborsAsync
&Startup.BroadcastAsync
were madepublic
.Whist one can get the initial node to appear to start, subsequent nodes crash on startup:
Beta Was this translation helpful? Give feedback.
All reactions