Click here to Skip to main content
15,909,039 members
Home / Discussions / C#
   

C#

 
GeneralRemoting (events/delegates) Pin
leppie13-Jan-03 9:40
leppie13-Jan-03 9:40 
Hi
I'll try to describe as much as possible.

I have my main app running in the default appdomain. I load a plugin manager class in a new AppDomain(plugin). I pass an instance(Connection class) from my main appdomain to the "plugin" appdomain by ObjectHandle. My plugin manager class then loads the plugin assemblies. These assemblies in turn registers to some events from the Connection reference in the "plugin" appdomain. Everything (loading/unloading/events/methods/etc) functions as it should except, when registering the events in my plugin , the plugin's assembly gets loaded in the main appdomain.

The question is how can i "subscribe" to these events without the main appdomian havin to load the plugin assembly? I have thought perhaps "chaining" the events to a new class in the plugin manager assembly and let my plugin subscribe to those. Seems like a lot of work (and the possiblitlity of creating duplicate/error-prone code).

Damn its seems a language is sometimes too type-safe for your liking.

Any input would be appreciated. I can mail you the code as well. A bit much too post. Smile | :)

WebBoxes - Yet another collapsable control, but it relies on a "graphics server" for dynamic pretty rounded corners, cool arrows and unlimited font support.

GeneralRe: Remoting (events/delegates) Pin
James T. Johnson14-Jan-03 8:19
James T. Johnson14-Jan-03 8:19 
GeneralRe: Remoting (events/delegates) Pin
leppie14-Jan-03 10:08
leppie14-Jan-03 10:08 
GeneralRe: Remoting (events/delegates) Pin
James T. Johnson15-Jan-03 0:02
James T. Johnson15-Jan-03 0:02 
GeneralRe: Remoting (events/delegates) Pin
leppie15-Jan-03 6:32
leppie15-Jan-03 6:32 
GeneralRe: Remoting (events/delegates) Pin
Gertjan Schuurmans15-Jan-03 12:13
Gertjan Schuurmans15-Jan-03 12:13 
GeneralRe: Remoting (events/delegates) Pin
leppie15-Jan-03 13:27
leppie15-Jan-03 13:27 
GeneralRe: Remoting (events/delegates) Pin
leppie15-Jan-03 14:41
leppie15-Jan-03 14:41 
GeneralRe: Remoting (events/delegates) Pin
leppie15-Jan-03 21:44
leppie15-Jan-03 21:44 
GeneralRe: Remoting (events/delegates) Pin
Gertjan Schuurmans16-Jan-03 7:20
Gertjan Schuurmans16-Jan-03 7:20 
GeneralRe: Remoting (events/delegates) Pin
leppie16-Jan-03 10:56
leppie16-Jan-03 10:56 
QuestionHow to use the SqlClientPermission? Pin
shanelhatcher13-Jan-03 7:48
shanelhatcher13-Jan-03 7:48 
AnswerRe: How to use the SqlClientPermission? Pin
leppie13-Jan-03 9:44
leppie13-Jan-03 9:44 
GeneralRe: How to use the SqlClientPermission? Pin
shanelhatcher14-Jan-03 8:02
shanelhatcher14-Jan-03 8:02 
GeneralFullscreen Alt-Tab problem in ManagedD3D Pin
Zinj13-Jan-03 2:22
sussZinj13-Jan-03 2:22 
GeneralRe: Windows Service & Console Server application Pin
Kannan Kalyanaraman13-Jan-03 1:14
Kannan Kalyanaraman13-Jan-03 1:14 
Generalrun external programm and catch results Pin
Daishi100213-Jan-03 0:11
Daishi100213-Jan-03 0:11 
GeneralRe: run external programm and catch results Pin
Daishi100213-Jan-03 0:58
Daishi100213-Jan-03 0:58 
GeneralBest COM and .NET interop book Pin
Oyvind Bratland12-Jan-03 21:18
Oyvind Bratland12-Jan-03 21:18 
GeneralRe: Best COM and .NET interop book Pin
Jarrod Marshall13-Jan-03 7:42
Jarrod Marshall13-Jan-03 7:42 
GeneralCreate Shortcut (.lnk) Pin
CyberKewl12-Jan-03 17:10
CyberKewl12-Jan-03 17:10 
GeneralRe: Create Shortcut (.lnk) Pin
Kannan Kalyanaraman13-Jan-03 1:10
Kannan Kalyanaraman13-Jan-03 1:10 
GeneralRe: Create Shortcut (.lnk) Pin
CyberKewl13-Jan-03 2:26
CyberKewl13-Jan-03 2:26 
GeneralAnother Question [They just keep comin :)] Pin
Nnamdi Onyeyiri12-Jan-03 8:52
Nnamdi Onyeyiri12-Jan-03 8:52 
GeneralRe: Another Question [They just keep comin :)] Pin
leppie12-Jan-03 9:50
leppie12-Jan-03 9: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.