mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 08:55:28 +08:00 
			
		
		
		
	Merge pull request #261 from binarymash/feature/ReduceBuildWarnings
Feature/reduce build warnings
This commit is contained in:
		@@ -18,7 +18,6 @@ namespace Ocelot.AcceptanceTests
 | 
			
		||||
    {
 | 
			
		||||
        private IWebHost _builder;
 | 
			
		||||
        private readonly Steps _steps;
 | 
			
		||||
        private string _downstreamPath;
 | 
			
		||||
 | 
			
		||||
        public HeaderTests()
 | 
			
		||||
        {
 | 
			
		||||
@@ -221,13 +220,15 @@ namespace Ocelot.AcceptanceTests
 | 
			
		||||
                .Configure(app =>
 | 
			
		||||
                {
 | 
			
		||||
                    app.UsePathBase(basePath);
 | 
			
		||||
                    app.Run(async context =>
 | 
			
		||||
                    app.Run(context => 
 | 
			
		||||
                    {   
 | 
			
		||||
                        context.Response.OnStarting(() => {
 | 
			
		||||
                            context.Response.Headers.Add(headerKey, headerValue);
 | 
			
		||||
                            context.Response.StatusCode = statusCode;
 | 
			
		||||
                            return Task.CompletedTask;
 | 
			
		||||
                        });
 | 
			
		||||
 | 
			
		||||
                        return Task.CompletedTask;
 | 
			
		||||
                    });
 | 
			
		||||
                })
 | 
			
		||||
                .Build();
 | 
			
		||||
@@ -235,11 +236,6 @@ namespace Ocelot.AcceptanceTests
 | 
			
		||||
            _builder.Start();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        internal void ThenTheDownstreamUrlPathShouldBe(string expectedDownstreamPath)
 | 
			
		||||
        {
 | 
			
		||||
            _downstreamPath.ShouldBe(expectedDownstreamPath);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public void Dispose()
 | 
			
		||||
        {
 | 
			
		||||
            _builder?.Dispose();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user