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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
