pmMDA.NET

ClientDataObjectHandler Constructor (IRemotingHandler)

[This is preliminary documentation and subject to change.]

Initializes a new instance of the ClientRemotingHandler.

public ClientDataObjectHandler(
   IRemotingHandler proxy
);

Parameters

proxy
The proxy which resides on the server.

Example

C#

public class RemotingClientApp : Locator {
   [STAThread]
   static void Main(string[] args) {
      new RemotingClientApp();
   }

   public RemotingClientApp() {
      // require proxy
      IRemotingHandler proxy = (IRemotingHandler) Activator.GetObject(
         typeof(IRemotingHandler),
         "http://localhost:1234/HostRemotingHandler"
         // use the uri as specified in your HostRemotingHandler
      );
      
      // Initialize pmMDA
      Register(this);
      DataObjectManager manager = new DataObjectManager(new ClientRemotingHandler(proxy));
      Register(manager);
      Initialize();
      Startup();
      
      // TODO: The custom client application starts here
   }
}

See Also

ClientDataObjectHandler Class | PmMda.Net.Dog.Remoting Namespace | ClientDataObjectHandler Constructor Overload List