Made WeatherClient disposable
This commit is contained in:
parent
6160d54024
commit
8269dba187
|
@ -15,7 +15,7 @@ namespace MediaBrowser.Controller.Weather
|
||||||
/// Based on http://www.worldweatheronline.com/free-weather-feed.aspx
|
/// Based on http://www.worldweatheronline.com/free-weather-feed.aspx
|
||||||
/// The classes in this file are a reproduction of the json output, which will then be converted to our weather model classes
|
/// The classes in this file are a reproduction of the json output, which will then be converted to our weather model classes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class WeatherClient
|
public class WeatherClient : IDisposable
|
||||||
{
|
{
|
||||||
private HttpClient HttpClient { get; set; }
|
private HttpClient HttpClient { get; set; }
|
||||||
|
|
||||||
|
@ -73,6 +73,11 @@ namespace MediaBrowser.Controller.Weather
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
HttpClient.Dispose();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class WeatherResult
|
class WeatherResult
|
||||||
|
|
Loading…
Reference in New Issue
Block a user