aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/IDependencyContainer.cs
blob: 423c1740a3955946bb38d5193c9a6face83f108c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
    }
}