473,395 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How do I implement a custom interface AND MarshalByRefObject?

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#
Oct 11 '06 #1
1 2146
I stumbled across the solution:

public class MyClass: MarshalByRefObject, IMyInterface

"Todd Beaulieu" wrote:
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#
Oct 11 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Matt Osborne | last post by:
Hello: I have a client server application that I am currently developing and have some issues that I feel can be best resolved using a custom ObjRef child class. I have created the class OK,...
10
by: Bjarke Lindberg | last post by:
Hey NG. Using .NET remoting it's possible to "override" the <c>new</c> operator to return a proxy to the object in question. I'd like to use this approach to let a factory class return the...
3
by: Guthrie Phalanx | last post by:
HI all Bit of a newbie on interfaces, I hope this is not a silly question. I am stuck on a problem where I want to create a custom collection of objects, all of whom implement the same...
0
by: Martin | last post by:
Hi, I wanted to preform my own custom validation for the entire page so i though I would implemet the IValidator interface and do all of my validation in the "Validate" method, and this works...
7
by: moondaddy | last post by:
If I'm in a class that inherits an interface, is there a shortcut key that will write the implementation of the interface into the class? I remember seeing something like this in vb.net. ...
4
by: Dan Holmes | last post by:
I am in a jam. Since C# (or the CLR) doesn't support MI i need to create either two inheritance hierarchies or have all my object inherit ultimately from MarshalByRefObject. I noticed that...
2
by: Chris Zopers | last post by:
Hello, I would like to know what's the best way to implement a business logic layer between my user interface and my database. I would say I'd make a dll-project for the business logic layer...
6
by: Smithers | last post by:
Just looking to compile a list of "all the ways to implement events". I'm NOT looking to get into the merits or mechanics of each in this thread... just want to identify them all - good, bad, and...
6
by: Venkatesh Bhupathi | last post by:
Hi All, I am trying to inherit the Generic IList<Tinterface to form the typed collection of objects of type T. Following is my sample code, Public Class Record { public string name;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.