This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
/
Regions.cs
118 lines (112 loc) · 4.2 KB
/
Regions.cs
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
using System.Collections.Generic;
namespace MCCRegionSelector
{
public static class Regions
{
private static readonly Dictionary<Region, List<string>> regions;
static Regions()
{
regions = new Dictionary<Region, List<string>>
{
[Region.E_US] = new List<string>()
{
"0.0.0.0 pfmsqosprod.eastus.cloudapp.azure.com",
"0.0.0.0 pfmsqosprod.eastus2.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-eus-9-18-2-0.cloudapp.net"
},
[Region.NC_US] = new List<string>()
{
"0.0.0.0 pfmsqosprod.northcentralus.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-ncus-9-18-2-0.cloudapp.net"
},
[Region.C_US] = new List<string>()
{
"0.0.0.0 pfmsqosprod.centralus.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-cus-9-18-2-0.cloudapp.net"
},
[Region.SC_US] = new List<string>()
{
"0.0.0.0 pfmsqosprod.southcentralus.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-scus-9-18-2-0.cloudapp.net"
},
[Region.W_US] = new List<string>()
{
"0.0.0.0 pfmsqosprod.westus.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-wus-9-18-2-0.cloudapp.net"
},
[Region.N_EU] = new List<string>()
{
"0.0.0.0 pfmsqosprod.northeurope.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-neu-9-18-2-0.cloudapp.net"
},
[Region.W_EU] = new List<string>()
{
"0.0.0.0 pfmsqosprod.westeurope.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-weu-9-18-2-0.cloudapp.net"
},
[Region.SE_AS] = new List<string>()
{
"0.0.0.0 pfmsqosprod.southeastasia.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-seas-9-18-2-0.cloudapp.net"
},
[Region.E_AS] = new List<string>()
{
"0.0.0.0 pfmsqosprod.eastasia.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-eas-9-18-2-0.cloudapp.net"
},
[Region.E_AU] = new List<string>()
{
"0.0.0.0 pfmsqosprod.australiaeast.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-aue-9-18-2-0.cloudapp.net"
},
[Region.SE_AU] = new List<string>()
{
"0.0.0.0 pfmsqosprod.australiasoutheast.cloudapp.azure.com",
"0.0.0.0 pfmsqosprod2.australiasoutheast.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-ause-9-18-2-0.cloudapp.net"
},
[Region.W_JA] = new List<string>()
{
"0.0.0.0 pfmsqosprod.japanwest.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-jaw-9-18-2-0.cloudapp.net"
},
[Region.E_JA] = new List<string>()
{
"0.0.0.0 pfmsqosprod.japaneast.cloudapp.azure.com",
"0.0.0.0 xblcxplatqos-jae-9-18-2-0.cloudapp.net"
},
[Region.BZ] = new List<string>()
{
"0.0.0.0 xblcxplatqos-brs-9-18-2-0.cloudapp.net"
}
};
}
public static bool ContainsKey(Region region)
{
return regions.ContainsKey(region);
}
public static List<string> GetHostNames(Region region)
{
if (ContainsKey(region))
return regions[region];
return null;
}
}
public enum Region
{
E_US,
NC_US,
C_US,
SC_US,
W_US,
N_EU,
W_EU,
E_AS,
SE_AS,
W_JA,
E_JA,
E_AU,
SE_AU,
BZ
}
}