21 lines
650 B
C#
21 lines
650 B
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNet.Routing;
|
|
|
|
namespace Microsoft.AspNet.Mvc
|
|
{
|
|
public interface IActionSelector
|
|
{
|
|
Task<ActionDescriptor> SelectAsync(RouteContext context);
|
|
|
|
bool Match(ActionDescriptor descriptor, RouteContext context);
|
|
|
|
bool HasValidAction(VirtualPathContext context);
|
|
|
|
IEnumerable<ActionDescriptor> GetCandidateActions(VirtualPathContext context);
|
|
}
|
|
}
|