[Mono-list] Casting and Plugin Issue

Pablo Fischer pablo@pablo.com.mx
Sun, 27 Jun 2004 18:17:28 -0500


--=-e/m0oO/Ut1eLKvCrEfwQ
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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

--=20
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=20
http://www.debianmexico.org

--=-e/m0oO/Ut1eLKvCrEfwQ
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
	digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBA31WICEChCnSk5cARAkEmAJ9MdXyjZuQPxq5uj0hB1LsgzYLp/QCfYiDg
jas0Kwd2AEN791HM97aSfRA=
=5sEZ
-----END PGP SIGNATURE-----

--=-e/m0oO/Ut1eLKvCrEfwQ--