/// <summary> /// Constructs and maps based on a custom Steam Store Web API URL /// </summary> /// <param name="steamStoreApiBaseUrl">Steam Store Web API URL</param> public SteamStoreInterface(string steamStoreApiBaseUrl) { this.steamStoreRequest = new SteamStoreRequest(steamStoreApiBaseUrl); AutoMapperConfiguration.Initialize(); }
/// <summary> /// Constructs and maps based on a custom http client and custom Steam Store Web API URL /// </summary> /// <param name="steamStoreApiBaseUrl">Steam Store Web API URL</param> /// <param name="httpClient">Client to make requests with</param> public SteamStoreInterface(string steamStoreApiBaseUrl, HttpClient httpClient) { steamStoreRequest = new SteamStoreRequest(steamStoreApiBaseUrl, httpClient); }
/// <summary> /// Constructs and maps based on a custom http client /// </summary> /// <param name="httpClient">Client to make requests with</param> public SteamStoreInterface(IMapper mapper, HttpClient httpClient) { this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); steamStoreRequest = new SteamStoreRequest(steamStoreApiBaseUrl, httpClient); }
/// <summary> /// Constructs and maps based on a custom Steam Store Web API URL /// </summary> /// <param name="steamStoreApiBaseUrl">Steam Store Web API URL</param> public SteamStoreInterface(string steamStoreApiBaseUrl) { steamStoreRequest = new SteamStoreRequest(steamStoreApiBaseUrl); }
/// <summary> /// Constructs and maps based on a custom http client /// </summary> /// <param name="httpClient">Client to make requests with</param> public SteamStoreInterface(HttpClient httpClient) { this.steamStoreRequest = new SteamStoreRequest(steamStoreApiBaseUrl, httpClient); AutoMapperConfiguration.Initialize(); }