diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-20 23:37:50 -0500 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-02-20 23:37:50 -0500 |
| commit | a5f9dc1bfc6c8d37f915d2ea33e495013bd83ba5 (patch) | |
| tree | 960cabedfbd07fe4eac3503e99f8bab745db58e2 /MediaBrowser.Common/Kernel/BaseKernel.cs | |
| parent | 509156cbc3497ff8daabefd3dba843f5b085701a (diff) | |
isolated sqlite dependancy
Diffstat (limited to 'MediaBrowser.Common/Kernel/BaseKernel.cs')
| -rw-r--r-- | MediaBrowser.Common/Kernel/BaseKernel.cs | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/MediaBrowser.Common/Kernel/BaseKernel.cs b/MediaBrowser.Common/Kernel/BaseKernel.cs index 616a0305c..95e6d05d6 100644 --- a/MediaBrowser.Common/Kernel/BaseKernel.cs +++ b/MediaBrowser.Common/Kernel/BaseKernel.cs @@ -116,7 +116,7 @@ namespace MediaBrowser.Common.Kernel /// <param name="newVersion">The new version.</param> public void OnApplicationUpdated(Version newVersion) { - EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs<Version> {Argument = newVersion}); + EventHelper.QueueEventIfNotNull(ApplicationUpdated, this, new GenericEventArgs<Version> { Argument = newVersion }); NotifyPendingRestart(); } @@ -258,7 +258,7 @@ namespace MediaBrowser.Common.Kernel /// <value>The rest services.</value> [ImportMany(typeof(IRestfulService))] public IEnumerable<IRestfulService> RestServices { get; private set; } - + /// <summary> /// The _protobuf serializer initialized /// </summary> @@ -348,14 +348,20 @@ namespace MediaBrowser.Common.Kernel public Assembly[] Assemblies { get; private set; } /// <summary> - /// Initializes the Kernel + /// Initializes a new instance of the <see cref="BaseKernel{TApplicationPathsType}" /> class. /// </summary> /// <param name="isoManager">The iso manager.</param> - /// <returns>Task.</returns> - public async Task Init(IIsoManager isoManager) + protected BaseKernel(IIsoManager isoManager) { IsoManager = isoManager; + } + /// <summary> + /// Initializes the Kernel + /// </summary> + /// <returns>Task.</returns> + public async Task Init() + { Logger = Logging.LogManager.GetLogger(GetType().Name); ApplicationPaths = new TApplicationPathsType(); @@ -539,10 +545,10 @@ namespace MediaBrowser.Common.Kernel { yield return pluginAssembly; } - + // Include composable parts in the Model assembly - yield return typeof (SystemInfo).Assembly; - + yield return typeof(SystemInfo).Assembly; + // Include composable parts in the Common assembly yield return Assembly.GetExecutingAssembly(); @@ -636,7 +642,7 @@ namespace MediaBrowser.Common.Kernel IsoManager = null; } } - + /// <summary> /// Disposes the TCP manager. /// </summary> @@ -760,7 +766,7 @@ namespace MediaBrowser.Common.Kernel /// The _save lock /// </summary> private readonly object _configurationSaveLock = new object(); - + /// <summary> /// Saves the current configuration /// </summary> |
