/// <summary> /// Initializes a new instance of the <see cref="Plugin" /> class. /// </summary> public Plugin(IXmlSerializer xmlSerializer, IHttpClient httpClient, IJsonSerializer jsonSerializer, ILogger logger) { Instance = this; Logger = logger; // Create our shared service proxies StreamingProxy = new StreamingServiceProxy(httpClient, jsonSerializer, xmlSerializer); TvProxy = new TVServiceProxy(httpClient, jsonSerializer, xmlSerializer, StreamingProxy); }
/// <summary> /// Initializes a new instance of the <see cref="Plugin" /> class. /// </summary> /// <param name="applicationPaths">The application paths.</param> /// <param name="xmlSerializer">The XML serializer.</param> /// <param name="httpClient">The HTTP client.</param> /// <param name="jsonSerializer">The json serializer.</param> /// <param name="networkManager">The network manager.</param> /// <param name="logger">The logger.</param> public Plugin( IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer, IHttpClient httpClient, IJsonSerializer jsonSerializer, INetworkManager networkManager, ILogger logger, TmdbLookup tmdbLookup) : base(applicationPaths, xmlSerializer) { Instance = this; Logger = new PluginLogger(logger); // Create our shared service proxies StreamingProxy = new StreamingServiceProxy(httpClient, jsonSerializer, xmlSerializer, networkManager); TvProxy = new TVServiceProxy(httpClient, jsonSerializer, xmlSerializer, StreamingProxy, tmdbLookup); }