File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Http/Http/src/Builder Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public class ApplicationBuilder : IApplicationBuilder
16
16
private const string ServerFeaturesKey = "server.Features" ;
17
17
private const string ApplicationServicesKey = "application.Services" ;
18
18
19
- private readonly IList < Func < RequestDelegate , RequestDelegate > > _components = new List < Func < RequestDelegate , RequestDelegate > > ( ) ;
19
+ private readonly List < Func < RequestDelegate , RequestDelegate > > _components = new List < Func < RequestDelegate , RequestDelegate > > ( ) ;
20
20
21
21
public ApplicationBuilder ( IServiceProvider serviceProvider )
22
22
{
@@ -99,9 +99,9 @@ public RequestDelegate Build()
99
99
return Task . CompletedTask ;
100
100
} ;
101
101
102
- foreach ( var component in _components . Reverse ( ) )
102
+ for ( var c = _components . Count - 1 ; c >= 0 ; c -- )
103
103
{
104
- app = component ( app ) ;
104
+ app = _components [ c ] ( app ) ;
105
105
}
106
106
107
107
return app ;
You can’t perform that action at this time.
0 commit comments