• 0

[C#] .NET Remoting Event On Arrival?


Question

I was wondering if there is a way to hook into .NET Remoting so that once the remote data/procedure has arrived at the remote end (where it will run) and right before it runs, an event is fired so that I can do some validation/etc... of the data that was sent? Is there such an event or some easy way to create one?

e.g.:

Local Side:

string data = "abcd";

MyRemoteObj remoteObj = new MyRemoteObj();

remoteObj.ValidateOnArrival += new ValidateEventHandler(remoteObj_validateOnArrival);

remoteObj.CallRemoteFunction(data);

...

function void remoteObj_validateOnArrival(object sender, ValidateEventArgs e)

{

....

}

Remote Side

function CallRemoteFunction(string data)

{

<Implicit event is fired before anything else in this function runs...is it possible ???>

....

}

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.