modular-design

ASP.NET MVC & MEF - Pluggable architecture

人走茶凉 提交于 2020-03-26 03:49:08
问题 I started creating a PoC following SO this post but I wasn't able to get a very basic sample to work. What I did: I created an ASP.NET MVC project using empty template and MVC references. I added Bootstrapper , CustomControllerFactory and CustomViewEngine classes and also the corresponding lines in Application_Start . I created an ASP.NET MVC project using MVC template. I added the Export and PartCreationPolicy decorators on HomeController . I published the module project to a folder inside

MVC Ninject: How to add NinJect bindings from an MVC Area project

送分小仙女□ 提交于 2019-12-24 14:06:19
问题 I've been using this blog example: http://blog.longle.net/2012/03/29/building-a-composite-mvc3-application-with-pluggable-areas/ I have the concepts working in my solution. However, I'm trying to figure out a good way only add bindings to the kernel if a user has permissions to access a module/area. I've read up some on the ServiceLocator but I was trying to stay away from it. One thing I'm trying just to get things to work is user Contructor injection in the default constructor for a module.

BUG exported object won't change outside when modified

萝らか妹 提交于 2019-12-11 06:02:19
问题 File A.js function Game() { this.id = Math.random(); this.endTimeout = setTimeout(() => { this.end(this); return }, this.duration * 60 * 1000); } Game.prototype.addPlayer = function(game, player, items) { console.log('addPlayer to game.id ' + game.id) if (game.totalItemAmount >= 50) { clearTimeout(game.endTimeout) game.end(game); } return } Game.prototype.end = function(game) { game = new Game(); } let game = new Game(); require('../../tests/B.js')(game) File B.js module.exports = function

ASP.NET Core 1 Modular (Plugin) Architecture? [closed]

会有一股神秘感。 提交于 2019-12-10 19:21:31
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I'm designing an architecture for a web application product using ASP.NET Core 1. I want the architecture to be modular and plugin. I want each module to be separated from the main application, and can be easily toggled ON and OFF. I found this open source framework ExtCore