205 reputation
129
bio website
location Hamburg, Germany
age 24
visits member for 1 year, 11 months
seen 12 hours ago

14h
awarded  Yearling
May
28
awarded  Citizen Patrol
Mar
12
accepted In a module-core program, how should modules interact with each other?
Mar
11
awarded  Famous Question
May
20
awarded  Notable Question
May
10
awarded  Nice Question
Apr
26
comment In a module-core program, how should modules interact with each other?
so, wait...when MEF initializes/finds a part, it'll automatically resolve the imports of that part? That'd explain this behaviour -> stackoverflow.com/questions/15758704/…
Apr
25
comment In a module-core program, how should modules interact with each other?
uhm, but I need to make that container available to other modules so that those can load modules they need, so I'd need one single, global container somwhere.
Apr
25
comment In a module-core program, how should modules interact with each other?
I'm sorry but I've to remove the answer tick for now. I looked up how that 'Shared' stuff works and as it seems, I've to put a global Container somewhere which I've to use, which would still require a core or at least an assembly that is referenced by all modules. That doesn't really solve my problem at hand, it just reduces it. For reference: stackoverflow.com/a/823492/937093
Apr
24
comment In a module-core program, how should modules interact with each other?
you are correct. In case of a server, the network module substitutes the GUI and thus is the executable. Thanks.
Apr
24
comment In a module-core program, how should modules interact with each other?
well, I thought about doing that by adding username/password parameters to all functions in the DB modules, since user auth is provided by a database. I'm not fond of just putting something around all that stuff and be done with it, since a cracker could just strip decompile my sweet C# code and replace the security module with one that just says 'allowed' to all requests.
Apr
24
comment In a module-core program, how should modules interact with each other?
also: What would the user 'start'? I need an executable (which currently is my core). And my program could also (based upon available modules) mimic a server (since I'm mono compatible even without having a GUI). Where would the executeable come from?!
Apr
24
comment In a module-core program, how should modules interact with each other?
well for security: it's not so much what a user could enter (adding data to my database isn't a problem. Worst case: Spam), the problem is that someone could read data (which, in my case, would be a huge security problem).
Apr
24
awarded  Commentator
Apr
24
comment In a module-core program, how should modules interact with each other?
sorry, I forgot that pressing the Enter key does not produce a line break but submits my comment. I edited it.
Apr
24
comment In a module-core program, how should modules interact with each other?
for one reason: because I like to have stuff 'organized'. another reason: because some modules are only allowed to have one instance, my core makes sure that at any given time there is only one instance. If one module would be needed by 2 others, what'd I do? Each of them would import it via MEF and create a seperate instance. (as far as I know)
Apr
24
comment In a module-core program, how should modules interact with each other?
so, my 2nd approach is what you'd do? About changing stuff: Everything that is shared between those modules is defined in separate assemblies and the modules itself are defined by interfaces. Meaning my MEF import is something like [Import(typeof(someInterface))].
Apr
24
comment In a module-core program, how should modules interact with each other?
also I'm not really sure how that is relevant here, since the 'controller' would still need to somehow get the data from the core/database module. (sorry if this is worded in an offending/provocative way, it's not meant to be. Just really curious (no irony/sarcasm))
Apr
24
comment In a module-core program, how should modules interact with each other?
I'm not sure how that'd be done? If $user clicks on a button 'Show some data', I've to handle the event in the class of that window/control. And I'd just do something like 'List<someTypeGloballyknown> listOfReturnedData =core.moduleB.GetMeSomeData(someParam); FillGUI(listOfReturnedData);' If you want me to do the FillGUI(listOfReturnedData); in a MVC like controller -> I'd usually do that but not here, since the data returned is (globally) known and defined in a seperate assembly and each module has to convert it the way it needs it.
Apr
24
awarded  Editor