using MediaBrowser.Common; using ServiceStack.Configuration; namespace MediaBrowser.Server.Implementations.HttpServer { /// /// Class ContainerAdapter /// class ContainerAdapter : IContainerAdapter, IRelease { /// /// 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(); } /// /// Releases the specified instance. /// /// The instance. public void Release(object instance) { // Leave this empty so SS doesn't try to dispose our objects } } }