// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web.Compilation; using System.Web.Http.Dispatcher; namespace System.Web.Http.WebHost { /// /// Provides an implementation of using . /// internal sealed class WebHostAssembliesResolver : IAssembliesResolver { /// /// Returns a list of controllers available for the application. /// /// An of controllers. ICollection IAssembliesResolver.GetAssemblies() { return BuildManager.GetReferencedAssemblies().OfType().ToList(); } } }