Click here to Skip to main content
15,906,455 members
Home / Discussions / C#
   

C#

 
GeneralRe: UrlDownloadToFile strange behaviour Pin
GriffonRL18-May-03 22:39
GriffonRL18-May-03 22:39 
GeneralRe: UrlDownloadToFile strange behaviour Pin
GriffonRL18-May-03 22:40
GriffonRL18-May-03 22:40 
GeneralIDocHostUIHandler and InternetExplorer object. Pin
GriffonRL16-May-03 4:14
GriffonRL16-May-03 4:14 
GeneralBest way to implement a game timer Pin
Anonymous16-May-03 4:10
Anonymous16-May-03 4:10 
General.NET Remoting related question Pin
stevb16-May-03 4:01
stevb16-May-03 4:01 
GeneralRe: .NET Remoting related question Pin
Andres Manggini16-May-03 12:31
Andres Manggini16-May-03 12:31 
GeneralDynamic business application questions Pin
tarmin16-May-03 0:05
tarmin16-May-03 0:05 
GeneralRe: Dynamic business application questions Pin
Daniel Turini16-May-03 0:58
Daniel Turini16-May-03 0:58 
tarmin wrote:
Hi,
I'm creating a client/server business application using .net remoting. I want this program to be dynamic and extensible, this way i dont have to adapt the program with every minor change. So i was trying to create a module/plugin like architecture. Somehow my program doesn't work fine, let me explain it in some details:
-The server has a remote singleton factory, the client uses an interface to contact it.
-The client requests its own SessionObject via the server factory, this SessionObject is defined by an interface. First problem: the interface needs to be compiled into one assembly, so i have to make a shared assembly which i dislike.
-The client then request a, serializable, object which contains references to modules inherited from MarshalByRefObject (these modules contain business logic). This is the second problem, again i need to compile the interfaces of these modules into one shared assembly, that means that i need to recompile the server and client with a reference to the interfaces.
So because of all these shared assemblies my application doesn't become very dynamic.

If I understood correctly, basically what you have is an interface, but you don't want to enforce compile-time interface implementation, because this would lead to deployment problems.
The only solution I see* to a plugin model like that is calling the method by its name as a string (see Type.InvokeMember), using Reflection. Obviously, this leads to some relaxation in compile-time checking, but, as long as your interface is not too complex, you won't run into trouble.

[edit]By the "only solution I see" I am assuming you already have investigated the possibility of proper version management and it does not solve your problem.[/edit]

My latest article: GBVB - Converting VB.NET code to C#
GeneralRe: Dynamic business application questions Pin
shaunAustin16-May-03 1:09
shaunAustin16-May-03 1:09 
GeneralRe: Dynamic business application questions Pin
tarmin17-May-03 4:28
tarmin17-May-03 4:28 
GeneralXML documentation problem Pin
simwiz15-May-03 23:00
simwiz15-May-03 23:00 
GeneralRe: XML documentation problem Pin
shaunAustin16-May-03 0:59
shaunAustin16-May-03 0:59 
Generalcreating a bindable control Pin
Roger Alsing15-May-03 21:06
Roger Alsing15-May-03 21:06 
GeneralRe: creating a bindable control Pin
David23g16-May-03 6:58
David23g16-May-03 6:58 
GeneralRe: creating a bindable control Pin
Bo Hunter16-May-03 20:19
Bo Hunter16-May-03 20:19 
Generalsetting share permissions Pin
Captain Kirk15-May-03 19:36
Captain Kirk15-May-03 19:36 
GeneralGetProcessesByName Problem Pin
eggie515-May-03 10:51
eggie515-May-03 10:51 
GeneralRe: GetProcessesByName Problem Pin
J. Dunlap15-May-03 11:04
J. Dunlap15-May-03 11:04 
GeneralDequeue an object of a struct type Pin
sultan_mu15-May-03 10:23
sultan_mu15-May-03 10:23 
GeneralRe: Dequeue an object of a struct type Pin
James T. Johnson16-May-03 4:19
James T. Johnson16-May-03 4:19 
GeneralRe: Dequeue an object of a struct type Pin
sultan_mu16-May-03 16:25
sultan_mu16-May-03 16:25 
GeneralDHTML object model in .NET Pin
Waleed Eissa15-May-03 7:52
Waleed Eissa15-May-03 7:52 
GeneralHidden forms Pin
solidstore15-May-03 4:44
solidstore15-May-03 4:44 
GeneralRe: Hidden forms Pin
RB@Emphasys16-May-03 6:57
RB@Emphasys16-May-03 6:57 
GeneralRe: Hidden forms Pin
solidstore17-May-03 7:50
solidstore17-May-03 7:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.