diff options
| author | Luke <luke.pulverenti@gmail.com> | 2014-02-11 23:29:14 -0500 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2014-02-11 23:29:14 -0500 |
| commit | c5f29c67ea5f1b06c5f23b7c88760c7a181661d4 (patch) | |
| tree | ab805edc544774f52194b605c17f1b5f158af30a /MediaBrowser.Common/IApplicationHost.cs | |
| parent | 1ff62edd845e0ff2da2150307b4addb13794bd16 (diff) | |
| parent | 61c2364de1a90b59cc2696858e946b88efab5c7d (diff) | |
Merge pull request #706 from thogil/dependency_modules
Added IDependencyModule to allow plugins to define IoC bindings
Diffstat (limited to 'MediaBrowser.Common/IApplicationHost.cs')
| -rw-r--r-- | MediaBrowser.Common/IApplicationHost.cs | 11 |
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); + } } |
