コード例 #1
0
        /// <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();
        }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
        /// <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();
        }