Moved discovery of loggers and weather providers to MEF. Also added support for third-party image processors, also discovered through MEF.
This commit is contained in:
parent
01a25c48a0
commit
8b7effd6ff
@@ -3,6 +3,7 @@ using MediaBrowser.Controller;
|
||||
using MediaBrowser.Model.Weather;
|
||||
using System;
|
||||
using System.ComponentModel.Composition;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -27,7 +28,7 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
zipCode = Kernel.Instance.Configuration.WeatherZipCode;
|
||||
}
|
||||
|
||||
return Kernel.Instance.WeatherClient.GetWeatherInfoAsync(zipCode);
|
||||
return Kernel.Instance.WeatherProviders.First().GetWeatherInfoAsync(zipCode);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user