Created
November 24, 2012 18:17
-
-
Save yallie/4140772 to your computer and use it in GitHub Desktop.
Zyan «Hello, World» example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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