Hi!

> Maybe you're compiling the source file where PostStruct is defined in
> both assemblies, caller and callee. What you should do is to compile it
> only in the caller, and then compile the plugin with a reference to the
> caller assembly. Beware that you can't do this if the caller is an
> "exe".

Yeah, It works!. I compiled these *Struct.cs files as a Assembly (dll)
and I'm compiling the plugin and main app with a reference to Struct.dll
and it works!.

> Maybe you could also add an interface, lets say IPlugin, which defines
> the method GetPosts. This way you wouldn't have to use reflection in
> order to invoke methods.

Uhm, I did not understand very well this. In IPlugin.cs I have defined
these methods (GetPost, GetPosts, etc) and in each Plugin I'm inheriting
from it (IPlugin) so with the Wrapper I just call GetPost instead of
calling each method with different names (Blogger, MetaWebLog,
LiveJournal, etc). Or you have another idea? :-)

Thanks!!
Pablo

-- 
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
Fingerprint:  5973 0F10 543F 54AE 1E41  EC81 0840 A10A 74A4 E5C0
http://www.pablo.com.mx 
http://www.debianmexico.org

Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente

Reply via email to