Skip to content

Commit 7ccee33

Browse files
authored
support for custom SteamWebApiBaseUrl (#122)
1 parent bb93e29 commit 7ccee33

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/SteamWebAPI2/Utilities/SteamWebInterfaceFactory.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ public SteamWebInterfaceFactory(IOptions<SteamWebInterfaceFactoryOptions> option
4444

4545
this.steamWebApiKey = options.Value.SteamWebApiKey;
4646

47+
if (!string.IsNullOrWhiteSpace(options.Value.SteamWebApiBaseUrl))
48+
{
49+
this.steamWebApiBaseUrl = options.Value.SteamWebApiBaseUrl;
50+
}
51+
4752
var mapperConfig = new MapperConfiguration(config =>
4853
{
4954
config.AddProfile<SteamWebResponseProfile>();

src/SteamWebAPI2/Utilities/SteamWebInterfaceFactoryOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ namespace SteamWebAPI2.Utilities
33
public class SteamWebInterfaceFactoryOptions
44
{
55
public string SteamWebApiKey { get; set; }
6+
public string SteamWebApiBaseUrl { get; set; }
67
}
78
}

0 commit comments

Comments
 (0)