// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; namespace Microsoft.AspNet.Routing { /// /// Defines a contract for a route builder in an application. A route builder specifies the routes for an application. /// public interface IRouteBuilder { /// /// Gets or sets the default that is used if an is added to the list of routes but does not specify its own. /// IRouter DefaultHandler { get; set; } IServiceProvider ServiceProvider { get; } /// /// Gets the routes configured in the builder. /// IList Routes { get; } /// /// Builds an that routes the routes specified in the property. /// IRouter Build(); } }