public AmapProvider(RestConfigurations config)
 {
     _config = config;
     BaseUri = new Uri(config.Amap.BaseUrl);
     if (_httpClient.BaseAddress == null)
     {
         _httpClient.BaseAddress = new Uri(config.Amap.BaseUrl);
     }
 }
Ejemplo n.º 2
0
 public SmsProvider(RestConfigurations config)
 {
     _config = config;
     BaseUri = new Uri(config.SMS.Address);
     if (_client.BaseAddress == null)
     {
         _client.BaseAddress = new Uri(config.SMS.Address);
     }
     _queryParams = $"uid={config.SMS.UserName}&pwd={config.SMS.Password}";
 }
Ejemplo n.º 3
0
 public SmsProvider(RestConfigurations config, ILogger logger) : this(config)
 {
     _logger = logger;
 }