Based on the Java background, I think so:
The server provides the object to the client. This object must be executed on the server.
Server:
private string _S = "A";
public interface IFoo { void Bar(); }
private class Foo : IFoo {
void Bar() { _S = "B";}
}
public IFoo GetFoo() { return new Foo(); }
Customer:
IFoo foo = serverChannel.GetFoo();
foo.Bar();
Is it possible? Or is my understanding wrong, and that's not how it works in WCF? What would be better?
source
share