So firstly, you need to create a new Console Application in Visual Studio. The language (Visual Basic or C#) doesn’t matter, but the following examples will be written in C#.
Then, you should add PlasticMetal.MobileSuit to your project(How?).
Add a Class to your project, named Client. It inherits class PlasticMetal.MobileSuit.ObjectModel.SuitClient.
Add a method called Hello to class Client. It has no parameters and return value.
The content of method can be anything you like. You can use IO.WriteLine and IO.ReadLine instead of Console.WriteLine and Console.ReadLine.
Add custom attributes to the method:
Add a method called Bye to class Client. It has a string parameter, named name. It returns a string.
The content of method can be anything you like. You can use Io.WriteLine and Io.ReadLine instead of Console.WriteLine and Console.ReadLine.
It may looks like:
1 | using PlasticMetal.MobileSuit.ObjectModel; |
Add the following code to the Main() method:
1 | new PlasticMetal.MobileSuit.SuitHost(new Client()).Run(); |
Build and run your application.
In the console, you may input:
The process of build such a app is so easy that you just need one class to write.