I’ve wanted to see how far we could push the limits of C#’’s native AOT support. There’s been so many advances in low level C# features, it makes this sort of interop much fun to write
#dotnet #aspnetcore
https://github.com/davidfowl/IIS.NativeAOT
#dotnet #aspnetcore
https://github.com/davidfowl/IIS.NativeAOT
Comments
Here’s an example of implementing IHttpModule.
https://github.com/davidfowl/IIS.NativeAOT/blob/7972862ae83eef40247cbd43e9566fea5568a5ee/IIS.NativeAOT/HttpModuleFactoryImpl.cs#L6
https://github.com/davidfowl/IIS.NativeAOT/blob/7972862ae83eef40247cbd43e9566fea5568a5ee/IIS.NativeAOT/CLRHost.cs#L104
This code will boot the CLR and call main.
https://github.com/davidfowl/IIS.NativeAOT/blob/7972862ae83eef40247cbd43e9566fea5568a5ee/WebApplication1/Program.cs#L32
I wonder how dumb it would be to do this for LSASS...