aspnetcore/test/WebSites/Microsoft.AspNet.Mvc.TestCo.../BuilderExtensions.cs

21 lines
725 B
C#

// 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 Microsoft.AspNet.Mvc.TestConfiguration;
namespace Microsoft.AspNet.Builder
{
public static class BuilderExtensions
{
// Should be added to the pipeline as early as possible.
public static IApplicationBuilder UseCultureReplacer(this IApplicationBuilder app)
{
return app.UseMiddleware<CultureReplacerMiddleware>();
}
public static IApplicationBuilder UseErrorReporter(this IApplicationBuilder app)
{
return app.UseMiddleware<ErrorReporterMiddleware>();
}
}
}