using MediaBrowser.Common; using ServiceStack.Configuration; namespace MediaBrowser.Server.Implementations.HttpServer { /// /// Class ContainerAdapter /// class ContainerAdapter : IContainerAdapter { /// /// The _app host /// private readonly IApplicationHost _appHost; /// /// Initializes a new instance of the class. /// /// The app host. public ContainerAdapter(IApplicationHost appHost) { _appHost = appHost; } /// /// Resolves this instance. /// /// /// ``0. public T Resolve() { return _appHost.Resolve(); } /// /// Tries the resolve. /// /// /// ``0. public T TryResolve() { return _appHost.TryResolve(); } } }