aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/IDependencyContainer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Common/IDependencyContainer.cs')
-rw-r--r--MediaBrowser.Common/IDependencyContainer.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/MediaBrowser.Common/IDependencyContainer.cs b/MediaBrowser.Common/IDependencyContainer.cs
new file mode 100644
index 000000000..423c1740a
--- /dev/null
+++ b/MediaBrowser.Common/IDependencyContainer.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace MediaBrowser.Common
+{
+ 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);
+ }
+} \ No newline at end of file