Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
No need to create a middleware that is impacting the stack size to serve script files. We can register the endpoint routes directly and invoke a delegate.
These methods should also not do string concatenation to render the files. They could precompute the utf8 string (private static ReadOnlySpan<byte> => "value"u8;) and call WriteAsync() for each segment instead.
No need to create a middleware that is impacting the stack size to serve script files. We can register the endpoint routes directly and invoke a delegate.
These methods should also not do string concatenation to render the files. They could precompute the utf8 string (
private static ReadOnlySpan<byte> => "value"u8;
) and callWriteAsync()
for each segment instead.