// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using System.Linq; namespace System.Web.Http.Controllers { public interface IHttpActionSelector { /// /// Selects the action. /// /// The controller context. /// The selected action. HttpActionDescriptor SelectAction(HttpControllerContext controllerContext); /// /// Returns a map, keyed by action string, of all that the selector can select. /// This is primarily called by to discover all the possible actions in the controller. /// /// The controller descriptor. /// A map of that the selector can select, or null if the selector does not have a well-defined mapping of . ILookup GetActionMapping(HttpControllerDescriptor controllerDescriptor); } }