25 lines
848 B
C#
25 lines
848 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 Microsoft.Framework.ConfigurationModel;
|
|
using Microsoft.Framework.DependencyInjection;
|
|
|
|
namespace Microsoft.AspNet.Routing
|
|
{
|
|
public class RoutingServices
|
|
{
|
|
public static IEnumerable<IServiceDescriptor> GetDefaultServices()
|
|
{
|
|
return GetDefaultServices(new Configuration());
|
|
}
|
|
|
|
public static IEnumerable<IServiceDescriptor> GetDefaultServices(IConfiguration configuration)
|
|
{
|
|
var describe = new ServiceDescriber(configuration);
|
|
|
|
yield return describe.Transient<IInlineConstraintResolver, DefaultInlineConstraintResolver>();
|
|
}
|
|
}
|
|
}
|