proxying an object for intersept methods call

dotnet framework


  • 1. Can I use .NET remoting with an ActiveX container?
    We're C# .NET developers who must use an ActiveX container (not IE) to create and contain our components. We'd like both the component and the client to be C# .NET code. But, it appears that you cannot do this with COM interop. To do this, the RCW of my client code would have to be able to talk to the CCW of my component. I can't see how to do this. And, when I try to add my .tlb as a reference to a .Net assembly, I get an error saying that a CLR assembly cannot be used in this way. Is there any solution short of changing the component code to C++ and ATL? Is it possible to use .NET remoting to communicate between my .NET client and .NET component even though it is an ActiveX container that creates the component? --TW
  • 2. Binary Remoting
    Just a quick question in relation to remoting over HTTP using the binary formatter. We really want to avoid the overheads of using https . Although our data doesnt need to be all the secure , just wondering what level of protection does sending data using binary offer. Is it any better than sending data using clear text format. Your response would be much appreciated cheers Bijoy
  • 3. Windows authentication over remoting... possible?
    > I would honestly not use or recommend remoting as a distributed object > technology. If you have to develop your app now (meaning, get it out the > door tomorrow), then I would suggest using COM+/Enterprise Services. Remoting isn't a distributed object technology; it's a communication protocol. In fact for .net to .net comms on lan, the recommendation is to use remoting AND com+/es. - Oisin

proxying an object for intersept methods call

Postby eWFtaWw » Wed, 25 Feb 2004 04:16:08 GMT

Im just using my proxy implementation using .Net Remoting ,but for proxy an object I must declare an interface(s) with all the method that I want to intercept calls an the target object must implement it. I try to do it without implement the interface(s) with attributes in all methods that I want to intercept calls, but if the class where are the methods doesnt implement any interface I receive a transparentProxy instead an object that I expect when I create my Proxy

Thanks for any help


Re: proxying an object for intersept methods call

Postby Allen Anderson » Thu, 26 Feb 2004 00:49:51 GMT

the functionality you need can be obtained through use of the a
TrackingHandler.  I wrote an article that deals with tracking handlers


You will need to look into the details of the tracking handler to get
the different implementation you need however it shouldn't be too
difficult.  I can answer any question you need on that subject as

Allen Anderson
mailto: allen@put my website url

On Mon, 23 Feb 2004 11:16:08 -0800, "yamil" < XXXX@XXXXX.COM >

Similar Threads:

1.ods calls business object then method calls ta with output params

2.Calling WSH Method with (ref object) parameter with a string object

3.Remote object - is it possible to call some of methods of remote object in "local" mode


Is it possible to mark some of methods of remote object (MarshallByRef
singleton) as "local", and process them in local context, without
exchanging messages between the client and server? I'm thinking about
marking some methods with a certain atrtribute, and then processing
such methods in a dynamic client Sink by calling some predefined
static class methods without passing the message down the sinks.

The reason to do it is to be able to easy call static methods of based
on the same base abstract class remote objects by just calling a
method of the instance of class.

Is this possible at all?

4."object required" - calling vb6 COM object method (works ok in ASP)

5.Code calls method with wrong signature (object vs object[])

Hello all,

  I recently ran into a strange behavior which I don't understand. I
have two 'Add' method which a slightly different signature which they
look like

  public void Add( string varName, ScriptVarType type, object value )
  public void Add( string varName, ScriptVarType type, object[] values

  Then in another part of the source base I have the following

  private void Extract( ... )
    byte[]               byteElements;


    // Where all arguments are assigned before the call is made
    ScriptVars.Add( groupsRegEx[1].Value, type, byteElements );

  The strange item which I don't understand is that instead of call the
method that accepts an array of objects the code is calling the method
where the signature only accepts a single object.  Can someone explain
why this is?  My guess is since object is the base class of most items
it is also the base class for arrays.  Any explanation will be
appreciated.  For the time being I will just end up change the method
names to force call to the correct method istead of relying on the
compiler looking at the signature. Thanks

6. Determine calling method from within called method?

7. Calling an attribute method before calling a method with that attribute

8. static method call vs. Singleton method call - performance

Return to dotnet framework


Who is online

Users browsing this forum: No registered users and 60 guest