How do I implement a custom interface AND MarshalByRefObject?

G

Guest

I need to return a reference of a server-side object to the client. I want
that class to implement a custom interface (there will be a number of classes
involved here and they will all support the same interface).

How can I do this? I seem to be able to implement MarshalByRefObject *or* my
custom interface, but not both. Is there no way to support interfaces in
remoting objects?

c#
 
G

Guest

I stumbled across the solution:

public class MyClass: MarshalByRefObject, IMyInterface
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top