Skip to content

Commit c477f33

Browse files
authored
[PBE-000] add connection regions (#124)
* chore: add connection regions * chore: lint * chore: removed unused regions * chore: typo
1 parent 3795926 commit c477f33

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

src/StreamClient.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,20 @@ private static string GetRegion(StreamApiLocation location)
168168
{
169169
case StreamApiLocation.USEast:
170170
return "us-east";
171-
case StreamApiLocation.Tokyo:
172-
return "tokyo";
173171
case StreamApiLocation.Dublin:
174172
return "dublin";
173+
case StreamApiLocation.Tokyo:
174+
return "tokyo";
175+
case StreamApiLocation.Mumbai:
176+
return "mumbai";
175177
case StreamApiLocation.Singapore:
176178
return "singapore";
177179
case StreamApiLocation.Sidney:
178180
return "sydney";
181+
case StreamApiLocation.Oregon:
182+
return "oregon";
183+
case StreamApiLocation.Ohio:
184+
return "ohio";
179185
default:
180186
return "us-east";
181187
}

src/StreamClientOptions.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,22 @@ public enum StreamApiLocation
4040
/// <summary>Dublin</summary>
4141
Dublin,
4242

43-
/// <summary>Singapore</summary>
44-
Singapore,
45-
4643
/// <summary>Tokyo</summary>
4744
Tokyo,
4845

46+
/// <summary>Mumbai</summary>
47+
Mumbai,
48+
49+
/// <summary>Singapore</summary>
50+
Singapore,
51+
4952
/// <summary>Sidney</summary>
5053
Sidney,
54+
55+
/// <summary>Oregon</summary>
56+
Oregon,
57+
58+
/// <summary>Ohio</summary>
59+
Ohio,
5160
}
5261
}

0 commit comments

Comments
 (0)