Last active
October 13, 2015 04:38
-
-
Save yallie/4140882 to your computer and use it in GitHub Desktop.
Zyan «Hello, World» client
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
// Connect to server | |
var connection = new ZyanConnection("tcp://localhost:8080/ZyanDemo"); | |
// Create HelloWorldService proxy | |
var proxy = connection.CreateProxy<IHelloWorldService>(); | |
// Invoke method | |
proxy.SayHello("HelloWorld"); | |
// Subscribe to a remote event | |
proxy.MyEvent += (sender, e) => Console.WriteLine("Hi!"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment