Run() public method

public Run ( ) : int
return int
Exemplo n.º 1
0
Arquivo: test2.cs Projeto: mono/gert
	static int Main (string [] args)
	{
		if (args.Length != 1)
			return 1;

		switch (args [0]) {
		case "client":
			SimpleClient client = new SimpleClient ();
			return client.Run ();
		case "server":
			SimpleServer server = new SimpleServer ();
			server.Run ();
			return 0;
		default:
			return 2;
		}
	}
Exemplo n.º 2
0
 private static async Task RunSimpleTest()
 {
     var client = new SimpleClient();
     await client.Run();
 }