[Mono-bugs] [Bug 82595][Maj] Changed - getting proxy for ContextBoundObject with virtual generic functions fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 28 17:46:45 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jan.oravec at 6com.sk.

http://bugzilla.ximian.com/show_bug.cgi?id=82595

--- shadow/82595	2007-08-28 12:37:31.000000000 -0400
+++ shadow/82595.tmp.21501	2007-08-28 17:46:45.000000000 -0400
@@ -193,6 +193,29 @@
 Translation: Unhanded exception: System.TypeLoadException: context-
 bound objects with generic methods are not supported.
 
 
 So we need to catch this in Mono as well.
 
+
+------- Additional Comments From jan.oravec at 6com.sk  2007-08-28 17:46 -------
+Interesting it's not supported on MS.NET. It appears to work fine on
+Mono with your 2 patches.
+
+I've got our application with generic remoting code working on Mono
+SVN head + your 2 patches. We use it to get services from server,
+pattern like (on the client):
+
+IServiceManager sm = whatever_code_to_get_service_manager_from_server;
+...
+sm.Get<ISomeService> ().DoSomething ();
+sm.Get<ITransactionService> ().Commit ();
+
+There are some reasons that ServiceManager and all other services are
+ContextBoundObjects (keeping track of current transaction, ...).
+
+Do you plan to commit your patches to SVN, so that
+generic+ContextBoundObject will work on Mono, or implement checks and
+throw exception like MS.NET does? (I would obviously prefer first
+choice, as I think that feature is very usable).
+
+Thanks


More information about the mono-bugs mailing list