-
It will be nice if developers would have control over code generation process which is responsible for creating External Modules, and which is now hidden inside Module Creator. It will be useful if developer will be able to customize default exposed templates and change default structure of components and services generated within External Module. For example, in case that you are fetching data from external API. Then structure of the services is a bit different. You don't need server side. Also, implementation of the service is a different. There is no need of ServiceBase class, and default behavior will be replaced. In a microservices architecture, where you may want to generate hundreds or thousands of modules, it can save a lot of time if customization is done only once. I don't know which code generation tool is used behind the scene. I think it is not Roslyn because I don't see Microsoft.CodeAnalysis namespace. Is it completely custom solution? It will be great if this would be some template based tool. In that case this feature should be easy to implement. Tell me, what do you think!? P.S. For everything I suggest, I am ready to contribute. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I think it would be nice to expose code generation APIs as service, we could add a default implementation to do what it does write now and leave the customization for the devs through DI. This is good for discussion, I can build a prototype as a POC |
Beta Was this translation helpful? Give feedback.
-
Please see this thread for more context: #1064 "The purpose of the Module Creator in the framework is to provide developers with a basic functional starting point for module development - so the fewer number of options the better or else it becomes confusing and defeats the intended purpose ( some would argue that even having 2 templates - Internal and External - is too confusing ). In addition, each new template requires ongoing maintenance as the framework is improved over time. My opinion is that it would be awesome to have a more advanced Module Creator... but it should not be in the core framework. It should be created as a custom module that can be installed through Module Management similar to the Blog module." |
Beta Was this translation helpful? Give feedback.
Please see this thread for more context: #1064
"The purpose of the Module Creator in the framework is to provide developers with a basic functional starting point for module development - so the fewer number of options the better or else it becomes confusing and defeats the intended purpose ( some would argue that even having 2 templates - Internal and External - is too confusing ). In addition, each new template requires ongoing maintenance as the framework is improved over time. My opinion is that it would be awesome to have a more advanced Module Creator... but it should not be in the core framework. It should be created as a custom module that can be installed through Module Managemen…