MCPcopy Create free account
hub / github.com/apache/thrift / Main

Method Main

test/netstd/Client/Program.cs:29–60  ·  view source on GitHub ↗
(string[] args)

Source from the content-addressed store, hash-verified

27 public class Program
28 {
29 static async Task<int> Main(string[] args)
30 {
31 if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
32 {
33 try
34 {
35 Console.SetBufferSize(Console.BufferWidth, 4096);
36 }
37 catch (Exception)
38 {
39 Console.WriteLine("Failed to grow scroll-back buffer");
40 }
41 }
42
43 // run whatever mode is choosen, default to test impl
44 var argslist = new List<string>(args);
45 switch (argslist.FirstOrDefault())
46 {
47 case "client": // crosstest wants to pass this, so just emit a hint and ignore
48 Console.WriteLine("Hint: The 'client' argument is no longer required.");
49 argslist.RemoveAt(0);
50 return await TestClient.Execute(argslist);
51 case "--performance":
52 case "--performance-test":
53 return await Tests.PerformanceTests.Execute();
54 case "--help":
55 PrintHelp();
56 return 0;
57 default:
58 return await TestClient.Execute(argslist);
59 }
60 }
61
62 private static void PrintHelp()
63 {

Callers

nothing calls this directly

Calls 1

ExecuteMethod · 0.45

Tested by

no test coverage detected