Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: MVC Functions that return a File: OutputStream is not available when a custom TextWriter is used.

$
0
0
Hi @NerdBrick
Your suggestion is a good one to use Attributed Routes, but it took me sometime to track down the documentation might have an error.
http://docs.composite.net/Functions/MVC/Registering-Functions

It indicates the MapMvcAttributeRoutes() should be added to the "OnBeforeInitialize"; however, doing this at this point won't work. My attributed routes aren't part of the route mapping.
Calling MapMvcAttributeRoutes() on "functions.RouteCollection" won't affect website's URLs as it is a separate route collection used exclusively by the MVC Functions package. We implemented it this way, so mvc functions won't interfere with the website urls and allows multiple dlls to use the package without possible routing conflicts.

You can register a feature request for the MVC package here:

https://github.com/Orckestra/C1-Packages/issues

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>