aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Kernel.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-21 01:38:23 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-21 01:38:23 -0500
commitee9d481662f84b3fd1f6c17bf708c27e2067c845 (patch)
treee9bd70c78a8dfbe262a255bc1df14607a565e50f /MediaBrowser.Controller/Kernel.cs
parentae4ffa75be378497d8db210c6864cde40f7c75f9 (diff)
isolated bdinfo dependancy
Diffstat (limited to 'MediaBrowser.Controller/Kernel.cs')
-rw-r--r--MediaBrowser.Controller/Kernel.cs38
1 files changed, 37 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Kernel.cs b/MediaBrowser.Controller/Kernel.cs
index f8f48d8de..b4c553c66 100644
--- a/MediaBrowser.Controller/Kernel.cs
+++ b/MediaBrowser.Controller/Kernel.cs
@@ -16,10 +16,12 @@ using MediaBrowser.Controller.Updates;
using MediaBrowser.Controller.Weather;
using MediaBrowser.Model.Configuration;
using MediaBrowser.Model.IO;
+using MediaBrowser.Model.MediaInfo;
using MediaBrowser.Model.System;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
+using System.ComponentModel.Composition.Hosting;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
@@ -305,13 +307,47 @@ namespace MediaBrowser.Controller
private IZipClient ZipClient { get; set; }
/// <summary>
+ /// Gets or sets the bluray examiner.
+ /// </summary>
+ /// <value>The bluray examiner.</value>
+ private IBlurayExaminer BlurayExaminer { get; set; }
+
+ /// <summary>
/// Creates a kernel based on a Data path, which is akin to our current programdata path
/// </summary>
- public Kernel(IIsoManager isoManager, IZipClient zipClient)
+ public Kernel(IIsoManager isoManager, IZipClient zipClient, IBlurayExaminer blurayExaminer)
: base(isoManager)
{
+ if (isoManager == null)
+ {
+ throw new ArgumentNullException("isoManager");
+ }
+
+ if (zipClient == null)
+ {
+ throw new ArgumentNullException("zipClient");
+ }
+
+ if (blurayExaminer == null)
+ {
+ throw new ArgumentNullException("blurayExaminer");
+ }
+
Instance = this;
ZipClient = zipClient;
+ BlurayExaminer = blurayExaminer;
+ }
+
+ /// <summary>
+ /// Composes the exported values.
+ /// </summary>
+ /// <param name="container">The container.</param>
+ protected override void ComposeExportedValues(CompositionContainer container)
+ {
+ base.ComposeExportedValues(container);
+
+ container.ComposeExportedValue("kernel", this);
+ container.ComposeExportedValue("blurayExaminer", BlurayExaminer);
}
/// <summary>