-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
43 lines (36 loc) · 1.12 KB
/
Program.cs
File metadata and controls
43 lines (36 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Threading.Tasks;
namespace ArangoDbPoc
{
public static class Program
{
public static async Task Main(string[] args)
{
await ChooseFlow().StartFlow();
Console.ReadLine();
}
private static Flow ChooseFlow()
{
Console.WriteLine("Choose Arango DB POC Flow:");
Console.WriteLine("1: Simple Document Flow");
Console.WriteLine("2: Simple Graph Traversal Flow");
Console.WriteLine("3: Complex Graph Traversal Flow");
var value = Console.ReadLine();
if (int.TryParse(value, out var flowId))
{
switch (flowId)
{
case 1:
return new SimpleDocument();
case 2:
return new SimpleGraphTraversal();
case 3:
return new ComplexGraphTraversal();
}
}
Console.WriteLine("Invalid value!");
Console.WriteLine();
return ChooseFlow();
}
}
}