Skip to content

Instantly share code, notes, and snippets.

@yallie
Created November 24, 2012 18:17
Show Gist options
  • Save yallie/4140772 to your computer and use it in GitHub Desktop.
Save yallie/4140772 to your computer and use it in GitHub Desktop.
Zyan «Hello, World» example
/* Server */
// Create component host named "ZyanDemo" and bind to TCP port 8080
var host = new ZyanComponentHost("ZyanDemo", 8080);
// Register component type and interface
host.RegisterComponent<IHelloWorldService, HelloWordService>();
/* Client */
// Connect to server
var connection = new ZyanConnection("tcp://localhost:8080/ZyanDemo");
// Create HelloWorldService proxy
var proxy = connection.CreateProxy<IHelloWorldService>();
// Invoke method
proxy.SayHello("HelloWorld");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment