aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/IApplicationHost.cs
diff options
context:
space:
mode:
authorThomas Gillen <thomas.gillen@googlemail.com>2014-02-06 21:18:40 +0000
committerThomas Gillen <thomas.gillen@googlemail.com>2014-02-06 21:18:40 +0000
commit61c2364de1a90b59cc2696858e946b88efab5c7d (patch)
treed340aa18b5f6b72b2e9a7462e06adfbd479aca30 /MediaBrowser.Common/IApplicationHost.cs
parentca0583bcbee3b2a66dfa2a25c63fb62081fe1239 (diff)
Added IDependencyModule to allow plugins to define IoC bindings
Diffstat (limited to 'MediaBrowser.Common/IApplicationHost.cs')
-rw-r--r--MediaBrowser.Common/IApplicationHost.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/MediaBrowser.Common/IApplicationHost.cs b/MediaBrowser.Common/IApplicationHost.cs
index 3d5f3c96f..fb49cc5b9 100644
--- a/MediaBrowser.Common/IApplicationHost.cs
+++ b/MediaBrowser.Common/IApplicationHost.cs
@@ -152,4 +152,15 @@ namespace MediaBrowser.Common
/// <returns>System.Object.</returns>
object CreateInstance(Type type);
}
+
+ public interface IDependencyContainer
+ {
+ void RegisterSingleInstance<T>(T obj, bool manageLifetime = true)
+ where T : class;
+
+ void RegisterSingleInstance<T>(Func<T> func)
+ where T : class;
+
+ void Register(Type typeInterface, Type typeImplementation);
+ }
}