Skip to content

Commit

Permalink
support for custom SteamWebApiBaseUrl (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
readmaniak authored Nov 20, 2021
1 parent bb93e29 commit 7ccee33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SteamWebAPI2/Utilities/SteamWebInterfaceFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ public SteamWebInterfaceFactory(IOptions<SteamWebInterfaceFactoryOptions> option

this.steamWebApiKey = options.Value.SteamWebApiKey;

if (!string.IsNullOrWhiteSpace(options.Value.SteamWebApiBaseUrl))
{
this.steamWebApiBaseUrl = options.Value.SteamWebApiBaseUrl;
}

var mapperConfig = new MapperConfiguration(config =>
{
config.AddProfile<SteamWebResponseProfile>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ namespace SteamWebAPI2.Utilities
public class SteamWebInterfaceFactoryOptions
{
public string SteamWebApiKey { get; set; }
public string SteamWebApiBaseUrl { get; set; }
}
}

0 comments on commit 7ccee33

Please sign in to comment.