From d54c6d8bf63c13c0b47f76fd9f40fec614fbd689 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sun, 19 Aug 2012 18:47:02 -0400 Subject: Created a BaseApplication class in common --- MediaBrowser.Common/Kernel/BaseKernel.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Common/Kernel/BaseKernel.cs') diff --git a/MediaBrowser.Common/Kernel/BaseKernel.cs b/MediaBrowser.Common/Kernel/BaseKernel.cs index 22ecc3315..15ab687f3 100644 --- a/MediaBrowser.Common/Kernel/BaseKernel.cs +++ b/MediaBrowser.Common/Kernel/BaseKernel.cs @@ -18,7 +18,7 @@ namespace MediaBrowser.Common.Kernel /// /// Represents a shared base kernel for both the UI and server apps /// - public abstract class BaseKernel : IDisposable + public abstract class BaseKernel : IDisposable, IKernel where TConfigurationType : BaseApplicationConfiguration, new() where TApplicationPathsType : BaseApplicationPaths, new() { @@ -264,4 +264,10 @@ namespace MediaBrowser.Common.Kernel } } } + + public interface IKernel + { + Task Init(IProgress progress); + void Dispose(); + } } -- cgit v1.2.3